mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-18 01:41:14 -06:00
Note the alternative options to set address, port and workers
This commit is contained in:
@@ -9,7 +9,11 @@ if __name__ == "__main__":
|
||||
interface=Interfaces.ASGI,
|
||||
address=os.getenv("GRANIAN_HOST") or os.getenv("PAPERLESS_BIND_ADDR", "::"),
|
||||
port=int(os.getenv("GRANIAN_PORT") or os.getenv("PAPERLESS_PORT") or 8000),
|
||||
workers=int(os.getenv("GRANIAN_WORKERS") or os.getenv("GRANIAN_WORKERS") or 1),
|
||||
workers=int(
|
||||
os.getenv("GRANIAN_WORKERS")
|
||||
or os.getenv("PAPERLESS_WEBSERVER_WORKERS")
|
||||
or 1,
|
||||
),
|
||||
websockets=True,
|
||||
url_path_prefix=os.getenv("PAPERLESS_FORCE_SCRIPT_NAME"),
|
||||
).serve()
|
||||
|
||||
Reference in New Issue
Block a user