mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-09-17 20:30:34 +00:00
Support for chaning the HTTP and HTTPS port that hosts will listen on
I have seen a few issues that mention that changing the port that nginx listens on is important (especially when using hostNetwork). I am not totally convinced that NPM should allow these use-cases but I was bored enough to implement it anyway. Related Issue: #4122
This commit is contained in:
@@ -164,6 +164,18 @@ The easy fix is to add a Docker environment variable to the Nginx Proxy Manager
|
||||
DISABLE_IPV6: 'true'
|
||||
```
|
||||
|
||||
## Chaning the HTTP and HTTPS Listen Port
|
||||
|
||||
If you are unable to configure the port mapping within Docker (eg. when using
|
||||
`hostNetwork: true`) you can change the port that proxy-hosts and
|
||||
redirection-hosts listen on by setting the environment variables `HTTP_PORT` and
|
||||
`HTTPS_PORT`:
|
||||
|
||||
```yml
|
||||
environment:
|
||||
HTTP_PORT: "1234"
|
||||
HTTPS_PORT: "5678"
|
||||
```
|
||||
|
||||
## Custom Nginx Configurations
|
||||
|
||||
|
Reference in New Issue
Block a user