mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-19 10:19:27 -05:00
Note the alternative options to set address, port and workers
This commit is contained in:
parent
ba5a4554c5
commit
831baef02e
@ -1538,13 +1538,23 @@ increase RAM usage.
|
|||||||
|
|
||||||
Defaults to 1.
|
Defaults to 1.
|
||||||
|
|
||||||
|
!!! note
|
||||||
|
|
||||||
|
This option may also be set with `GRANIAN_WORKERS` and
|
||||||
|
this option may be removed in the future
|
||||||
|
|
||||||
#### [`PAPERLESS_BIND_ADDR=<ip address>`](#PAPERLESS_BIND_ADDR) {#PAPERLESS_BIND_ADDR}
|
#### [`PAPERLESS_BIND_ADDR=<ip address>`](#PAPERLESS_BIND_ADDR) {#PAPERLESS_BIND_ADDR}
|
||||||
|
|
||||||
: The IP address the webserver will listen on inside the container.
|
: The IP address the webserver will listen on inside the container.
|
||||||
There are special setups where you may need to configure this value
|
There are special setups where you may need to configure this value
|
||||||
to restrict the Ip address or interface the webserver listens on.
|
to restrict the Ip address or interface the webserver listens on.
|
||||||
|
|
||||||
Defaults to `[::]`, meaning all interfaces, including IPv6.
|
Defaults to `::`, meaning all interfaces, including IPv6.
|
||||||
|
|
||||||
|
!!! note
|
||||||
|
|
||||||
|
This option may also be set with `GRANIAN_HOST` and
|
||||||
|
this option may be removed in the future
|
||||||
|
|
||||||
#### [`PAPERLESS_PORT=<port>`](#PAPERLESS_PORT) {#PAPERLESS_PORT}
|
#### [`PAPERLESS_PORT=<port>`](#PAPERLESS_PORT) {#PAPERLESS_PORT}
|
||||||
|
|
||||||
@ -1559,6 +1569,11 @@ one pod).
|
|||||||
|
|
||||||
Defaults to 8000.
|
Defaults to 8000.
|
||||||
|
|
||||||
|
!!! note
|
||||||
|
|
||||||
|
This option may also be set with `GRANIAN_PORT` and
|
||||||
|
this option may be removed in the future
|
||||||
|
|
||||||
#### [`USERMAP_UID=<uid>`](#USERMAP_UID) {#USERMAP_UID}
|
#### [`USERMAP_UID=<uid>`](#USERMAP_UID) {#USERMAP_UID}
|
||||||
|
|
||||||
: The ID of the paperless user in the container. Set this to your
|
: The ID of the paperless user in the container. Set this to your
|
||||||
|
@ -9,7 +9,11 @@ if __name__ == "__main__":
|
|||||||
interface=Interfaces.ASGI,
|
interface=Interfaces.ASGI,
|
||||||
address=os.getenv("GRANIAN_HOST") or os.getenv("PAPERLESS_BIND_ADDR", "::"),
|
address=os.getenv("GRANIAN_HOST") or os.getenv("PAPERLESS_BIND_ADDR", "::"),
|
||||||
port=int(os.getenv("GRANIAN_PORT") or os.getenv("PAPERLESS_PORT") or 8000),
|
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,
|
websockets=True,
|
||||||
url_path_prefix=os.getenv("PAPERLESS_FORCE_SCRIPT_NAME"),
|
url_path_prefix=os.getenv("PAPERLESS_FORCE_SCRIPT_NAME"),
|
||||||
).serve()
|
).serve()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user