Billy, thanks for answering.
I have never used socks5 proxy before and I was a bit intimidated by the docs. I set up the web machine to also run a nginx proxy through supervisord.
server {
listen 8080;
listen [::]:8080;
location / {
proxy_pass http://127.0.0.1:3000/;
}
}
If I send a request from the internet to the web server (app.fly.dev with ipv4) it does work correctly, but when I try to connect through the proxy app (app.flycast with ipv6) I get an Connection reset by peer error:
2024-01-10T09:16:04.832 app[91857e76f5e708] sea [info] 2024/01/10 09:16:04 [error] 311#311: *41 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 172.16.141.10, server: ~^(?<subdomain>.+)\.kabano\.com$, request: "GET / HTTP/1.1", upstream: "http://[fdaa:4:f834:0:1::6]:8080/", host: "app1-reddogroad.kabano.com"