I set up an application lisudoku.fly.dev. In order to set up my custom domain I also created lisudoku-proxy.fly.dev. This is the nginx.conf
:
server {
listen 8080;
listen [::]:8080;
server_name api.lisudoku.xyz lisudoku-proxy.fly.dev;
location / {
proxy_ssl_name $http_host;
proxy_ssl_server_name on;
proxy_pass https://lisudoku.fly.dev;
proxy_set_header X-Forwarded-Host $http_host;
}
}
I added a certificate to lisudoku.fly.dev.
The issue is that https://api.lisudoku.xyz works on my laptop and phone (I see the “Server is running” response), but it doesn’t seem to work anywhere else. I tried testing with browserstack and the page doesn’t load.
Any ideas? Not sure I even set it up correctly, it was all trial and error.