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
|
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"
|