Hello,
I just created a proxy for Nginx for a Docker app running with aaPanel, proxy redirect URL is http://localhost:8085.
1/ Host not saved
In the "Send host" field, I set "mydomain.com".
But in the generated config file, I get :
proxy_pass http://localhost:8085;
proxy_set_header Host localhost;
So the proxy doesn't work. It should be proxy_set_header Host mydomain.com
2/ Forward scheme is not set
I enabled SSL for this proxy. But I realized that the scheme forwarding wasn't enabled. I had to add manually:
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Scheme $scheme;
in the config file directly on the server. I could NOT add this as a personalized config in aaPanel as I would need to set these settings in the location /
block with leads to an error as I already exists.
As a result, whenever I modify anything in this proxy's settings in aaPanel, it overwrites my changes on the disk.
Thanks