website/etc/gunicorn.conf.py
Jake Howard 530503d769
Add in-memory cache around linguist data
Mostly useful for local development, but should help a little in production too
2023-07-15 17:47:21 +01:00

16 lines
421 B
Python

import gunicorn
wsgi_app = "website.wsgi:application"
accesslog = "-"
disable_redirect_access_to_syslog = True
preload_app = True
bind = "0.0.0.0:8080"
max_requests = 1200
max_requests_jitter = 50
forwarded_allow_ips = "*"
# Run an additional thread so the GIL isn't sitting completely idle
threads = 2
# Replace gunicorn's 'Server' HTTP header
gunicorn.SERVER_SOFTWARE = gunicorn.SERVER = "Wouldn't you like to know"