I have deployed two apps one Flycast - Private Fly Proxy services
Steps:
- Created a private IPv6 for the app
- Removed
force_https = true
from the[http_service]
infly.toml
- Deployed the app
In the nginx.conf of reverse proxy, I did the following
server {
listen 80;
server_name mydomain.com;
# Redirect HTTP to HTTPS
return 301 https://$host$request_uri;
}
server {
...other code
location / {
proxy_connect_timeout 90s;
proxy_pass http://my-fly-api.flycast:3000/;
proxy_set_header X-Forwarded-Host $http_host;
}
...other code
}
With this setup back to 502 Bad Gateway. What am I doing wrong?
I have also seen this - NGINX Reverse Proxy Flycast 502 Error, but did not work for me.