We have been using the CDN function from the older Javascript Apps. That seems to be broken now and I can not add a Backend from the web-app (screenshot below)
So I decided to try setting up a Nginx proxy following these instructions.
And this example dockerfile:
I got docker installed and created the image. It seems to deploy just fine but never redirects me. I tried to setup a simple www.emergingbroker.com to www.listingvillage.com redirect by just modifying the example like so:
I could really use some help on this as I need to get three new sites up and running. Also the server will crash if I don’t include server_name health.check from the example, but that is not mentioned in the Nginx guide. It kind of feels I’m trying to fit different pieces of a puzzle together that I don’t understand. It would be nice if there was a working code example to create a cert service like the CDN from the older version of Fly.
If you clone that, then change the lines indicated in the README, you should be in a pretty good spot. For your app in particular, you probably don’t want to point nginx to www.listingvillage.com, it would be better to bypass that and proxy directly to your origin host.
One thing that’s cool with docker is that you can test this locally. Once you have a config that might work, do this:
docker build . -t nginx-proxy
docker run -p 8080:8080 nginx-proxy
Alright… I’m on version 19 and can’t get the server to do anything. I can’t even reach the IP 213.188.198.0 or the hostname https://product-sites.fly.dev/
I used the files from the linked Git Repository.
I modified the nginx.conf with the origin URL as my live server IP address that is working with the old Fly JavaScript apps 3.82.124.117 and I comment out line 35 and uncomment line 38 to send the host header.