mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Gunicorn options (#4192)
* Add option for controlling gunicorn timeout * Adds gunicorn timeout as docker env variable
This commit is contained in:
parent
ac92471dcb
commit
ee2290da28
@ -17,6 +17,11 @@ capture_output = True
|
|||||||
worker_tmp_dir = '/dev/shm' # Write temp file to RAM (faster)
|
worker_tmp_dir = '/dev/shm' # Write temp file to RAM (faster)
|
||||||
threads = 4
|
threads = 4
|
||||||
|
|
||||||
|
|
||||||
|
# Worker timeout (default = 30 seconds)
|
||||||
|
timeout = os.environ.get('INVENTREE_GUNICORN_TIMEOUT', 30)
|
||||||
|
|
||||||
|
# Number of worker processes
|
||||||
workers = os.environ.get('INVENTREE_GUNICORN_WORKERS', None)
|
workers = os.environ.get('INVENTREE_GUNICORN_WORKERS', None)
|
||||||
|
|
||||||
if workers is not None:
|
if workers is not None:
|
||||||
|
@ -41,6 +41,9 @@ INVENTREE_DB_PORT=5432
|
|||||||
#INVENTREE_CACHE_HOST=inventree-cache
|
#INVENTREE_CACHE_HOST=inventree-cache
|
||||||
#INVENTREE_CACHE_PORT=6379
|
#INVENTREE_CACHE_PORT=6379
|
||||||
|
|
||||||
|
# Options for gunicorn server
|
||||||
|
INVENTREE_GUNICORN_TIMEOUT=30
|
||||||
|
|
||||||
# Enable custom plugins?
|
# Enable custom plugins?
|
||||||
INVENTREE_PLUGINS_ENABLED=False
|
INVENTREE_PLUGINS_ENABLED=False
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user