You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After the internal network uses npm to do port mapping through the firewall, the access url will hide the port number, resulting in normal access. After testing, you need to modify the /etc/nginx/conf.d/include/proxy.conf file in the container!
But every time you update the version, you need to enter the container to modify it. Is there a way to directly make the initial default value of proxy_set_header Host $http_host; instead of proxy_set_header Host $host; without recompiling the container?
The text was updated successfully, but these errors were encountered:
I don't understand why you have to change $host to $http_host, is this something which would have to be changed in general or just for your specific configuration?
But you can mount a custom your own /etc/nginx/conf.d/include/proxy.conf into the container which will then overwrite the existing file inside the container.
Though the file has not changed in almost a year, please note that you will also overwrite any updates to this file, so you should have an eye on whether new versions change anything in this file. At least you should keep in mind you overwrite this file if you encounter any problems after updating.
Original configuration file:
Need to be modified to:
But every time you update the version, you need to enter the container to modify it. Is there a way to directly make the initial default value of
proxy_set_header Host $http_host;
instead ofproxy_set_header Host $host;
without recompiling the container?The text was updated successfully, but these errors were encountered: