Skip to content

Instantly share code, notes, and snippets.

@mikechau
Created April 16, 2017 21:48
Show Gist options
  • Save mikechau/2df8949f1c92f48f53410fe3704bf825 to your computer and use it in GitHub Desktop.
Save mikechau/2df8949f1c92f48f53410fe3704bf825 to your computer and use it in GitHub Desktop.
[docker]
project = warehouse
app_dir = /%(project)
chdir = %(app_dir)
wsgi-file = django-config/wsgi.py
static-map = /static=/%(project)/static
enable-threads = true
single-interpreter = true
master = true
processes = 4
threads = 20
thread-stacksize = 512
thunder-lock = true
offload-threads = 1
enable-threads = true
max-requests = 5000
safe-pidfile = /var/run/nginx/%(project).pid
log-format = %(addr) - %(user) [%(ltime)] "%(method) %(uri) %(proto)" %(status) %(size) "%(referer)" "%(uagent)"
socket = /var/run/nginx/%(project).sock
chmod-socket = 660
vacuum = true
auto-procname = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment