I would like to use a nginx proxy in front of my anvil-app server (local server deployment). The nginx server is running with a https certificate and the anvil-app-server is running with http. I tried the following nginx settings:
The App Server assumes it has full control of an origin, so if you want it to coexist with other content you’ll want to run it on a separate subdomain (eg app.myserver.com) rather than a subpath (myserver.com/myapp)
I see both proxy and proxy_redirect - seems to me you should have one or the other.
How are your symbolic names ANVILSERVER and MYSERVER defined? I get the feeling you might be on Windows. My stuff is all Linux and the nginx reverse proxy requires the link from name to IP to be made in /etc/hosts
Hello, I am trying the same thing - anvil local app server behind a nginx reverse proxy, with certbot for https - and I am getting the same output in the browser. Meanwhile, browsing on the local machine/ localhost gives the desired result. Has there been any progress in solving this problem?
For anyone else struggling with this in the future. In my anvil-runtime config.yaml I had to add these options (note that the ORDER of these seems to be important!):