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
|
2023-02-21 21:41:31 +00:00
|
|
|
bind = "0.0.0.0:8080"
|
2023-07-15 17:47:21 +01:00
|
|
|
max_requests = 1200
|
2023-02-21 21:42:41 +00:00
|
|
|
max_requests_jitter = 50
|
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"
|