update readme with DEFAULT_HTTPS_REDIRECT_PORT
This commit is contained in:
parent
dd3b397724
commit
411d0064e2
1 changed files with 15 additions and 9 deletions
10
README.md
10
README.md
|
@ -144,6 +144,12 @@ To set the default host for nginx use the env var `DEFAULT_HOST=foo.bar.com` for
|
|||
|
||||
$ docker run -d -p 80:80 -e DEFAULT_HOST=foo.bar.com -v /var/run/docker.sock:/tmp/docker.sock:ro jwilder/nginx-proxy
|
||||
|
||||
### Default https redirect port
|
||||
|
||||
When `HTTPS_METHOD=redirect` defined in container, the default https redirect port will be 443 for all conteiners, set the env var `DEFAULT_HTTPS_REDIRECT_PORT=443` in nginx container to change this behavior, for example:
|
||||
|
||||
$ docker run -d -p 80:80 -e DEFAULT_HTTPS_REDIRECT_PORT=8443 -v /var/run/docker.sock:/tmp/docker.sock:ro jwilder/nginx-proxy
|
||||
|
||||
|
||||
### Separate Containers
|
||||
|
||||
|
@ -292,9 +298,9 @@ site after changing this setting, your browser has probably cached the HSTS poli
|
|||
redirecting you back to HTTPS. You will need to clear your browser's HSTS cache or use an incognito
|
||||
window / different browser.
|
||||
|
||||
### HTTPS External redirect port
|
||||
### HTTPS External redirect port per container config
|
||||
|
||||
By default when `HTTPS_METHOD=redirect`. nginx will redirect connections on port HTPP 80 to default HTTPS 443 port, with `HTTPS_REDIRECT_PORT=port` you can change this behavior to another port, for example `HTTPS_REDIRECT_PORT=8443`
|
||||
By default when `HTTPS_METHOD=redirect` nginx will redirect connections on port HTPP 80 to 443 port or value defined in `DEFAULT_HTTPS_REDIRECT_PORT`, with `HTTPS_REDIRECT_PORT=port` you can change this behavior to another port, for example `HTTPS_REDIRECT_PORT=8443`
|
||||
|
||||
### HSTS
|
||||
|
||||
|
|
Loading…
Reference in a new issue