2022-07-28 14:53:22 +01:00
|
|
|
import gunicorn
|
|
|
|
|
|
|
|
wsgi_app = "website.wsgi:application"
|
|
|
|
accesslog = "-"
|
|
|
|
disable_redirect_access_to_syslog = True
|
|
|
|
preload_app = True
|
|
|
|
bind = "0.0.0.0"
|
2022-08-30 21:38:12 +01:00
|
|
|
max_requests = 1200
|
|
|
|
max_requests_jitter = 100
|
2023-02-06 20:03:56 +00:00
|
|
|
forwarded_allow_ips = "*"
|
2022-07-28 14:53:22 +01:00
|
|
|
|
2022-09-06 08:36:55 +01:00
|
|
|
# Run an additional thread so the GIL isn't sitting completely idle
|
|
|
|
threads = 2
|
|
|
|
|
2022-07-28 14:53:22 +01:00
|
|
|
# Replace gunicorn's 'Server' HTTP header
|
2022-08-30 08:48:16 +01:00
|
|
|
gunicorn.SERVER_SOFTWARE = gunicorn.SERVER = "Wouldn't you like to know"
|