mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-17 10:13:56 -05:00
Merge pull request #1358 from paperless-ngx/bugfix-ip-bind-addr
Bugfix: Allow webserver bind address to be configured
This commit is contained in:
commit
ca75fb5664
@ -808,6 +808,13 @@ PAPERLESS_WEBSERVER_WORKERS=<num>
|
|||||||
|
|
||||||
Defaults to 1.
|
Defaults to 1.
|
||||||
|
|
||||||
|
PAPERLESS_BIND_ADDR=<ip address>
|
||||||
|
The IP address the webserver will listen on inside the container. There are
|
||||||
|
special setups where you may need to configure this value to restrict the
|
||||||
|
Ip address or interface the webserver listens on.
|
||||||
|
|
||||||
|
Defaults to [::], meaning all interfaces, including IPv6.
|
||||||
|
|
||||||
PAPERLESS_PORT=<port>
|
PAPERLESS_PORT=<port>
|
||||||
The port number the webserver will listen on inside the container. There are
|
The port number the webserver will listen on inside the container. There are
|
||||||
special setups where you may need this to avoid collisions with other
|
special setups where you may need this to avoid collisions with other
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
bind = f'[::]:{os.getenv("PAPERLESS_PORT", 8000)}'
|
bind = f'{os.getenv("PAPERLESS_BIND_ADDR", "[::]")}:{os.getenv("PAPERLESS_PORT", 8000)}'
|
||||||
workers = int(os.getenv("PAPERLESS_WEBSERVER_WORKERS", 1))
|
workers = int(os.getenv("PAPERLESS_WEBSERVER_WORKERS", 1))
|
||||||
worker_class = "paperless.workers.ConfigurableWorker"
|
worker_class = "paperless.workers.ConfigurableWorker"
|
||||||
timeout = 120
|
timeout = 120
|
||||||
|
Loading…
x
Reference in New Issue
Block a user