|
@@ -143,6 +143,23 @@ You'll need apache2-utils on the machine where you plan to create the htpasswd f
|
|
|
|
|
|
If you need to configure Nginx beyond what is possible using environment variables, you can provide custom configuration files on either a proxy-wide or per-`VIRTUAL_HOST` basis.
|
|
If you need to configure Nginx beyond what is possible using environment variables, you can provide custom configuration files on either a proxy-wide or per-`VIRTUAL_HOST` basis.
|
|
|
|
|
|
|
|
+#### Overriding default proxy settings
|
|
|
|
+
|
|
|
|
+If you want to override the default proxy settings for the nginx container, add a configuration file at `/etc/nginx/proxy.conf`. A file with the default settings would
|
|
|
|
+look like this:
|
|
|
|
+
|
|
|
|
+```Nginx
|
|
|
|
+# HTTP 1.1 support
|
|
|
|
+proxy_http_version 1.1;
|
|
|
|
+proxy_buffering off;
|
|
|
|
+proxy_set_header Host $http_host;
|
|
|
|
+proxy_set_header Upgrade $http_upgrade;
|
|
|
|
+proxy_set_header Connection $proxy_connection;
|
|
|
|
+proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
+proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
+proxy_set_header X-Forwarded-Proto $proxy_x_forwarded_proto;
|
|
|
|
+```
|
|
|
|
+
|
|
#### Proxy-wide
|
|
#### Proxy-wide
|
|
|
|
|
|
To add settings on a proxy-wide basis, add your configuration file under `/etc/nginx/conf.d` using a name ending in `.conf`.
|
|
To add settings on a proxy-wide basis, add your configuration file under `/etc/nginx/conf.d` using a name ending in `.conf`.
|