2023-01-05 21:42:14 +01:00
|
|
|
# The IP address (typically localhost) and port that the NetBox WSGI process should listen on
|
2019-12-12 14:07:06 -05:00
|
|
|
bind = '127.0.0.1:8001'
|
|
|
|
|
|
|
|
# Number of gunicorn workers to spawn. This should typically be 2n+1, where
|
|
|
|
# n is the number of CPU cores present.
|
|
|
|
workers = 5
|
|
|
|
|
|
|
|
# Number of threads per worker process
|
|
|
|
threads = 3
|
|
|
|
|
|
|
|
# Timeout (in seconds) for a request to complete
|
|
|
|
timeout = 120
|
|
|
|
|
|
|
|
# The maximum number of requests a worker can handle before being respawned
|
|
|
|
max_requests = 5000
|
|
|
|
max_requests_jitter = 500
|
2024-04-29 15:26:49 -04:00
|
|
|
|
|
|
|
# Uncomment this line to accept HTTP headers containing underscores, e.g. for remote
|
|
|
|
# authentication support. See https://docs.gunicorn.org/en/stable/settings.html#header-map
|
|
|
|
# header-map = 'dangerous'
|