mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-11 17:30:44 +01:00
Allows the webserver binding address to be configured via the environment
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
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))
|
||||
worker_class = "paperless.workers.ConfigurableWorker"
|
||||
timeout = 120
|
||||
|
||||
Reference in New Issue
Block a user