Skip to content

Instantly share code, notes, and snippets.

@manelclos
Last active August 1, 2017 10:06
Show Gist options
  • Select an option

  • Save manelclos/390c2bc28cbd6279e234 to your computer and use it in GitHub Desktop.

Select an option

Save manelclos/390c2bc28cbd6279e234 to your computer and use it in GitHub Desktop.
uwsgi ondemand config
[uwsgi]
procname-prefix-spaced=/apps/%c
chdir = %d/app
module = wsgi
# define if needed
# venv = %d/env
# execution
socket = %d/uwsgi.sock
workers = 1
threads = 5
max-requests = 1000
cheap
idle = 60
die-on-idle = true
# logging
logto = %d/log.log
log-date = true
logfile-chown = true
log-backupname = %d/log.log.old
log-maxsize = 2500000
# system
uid = www-data
gid = www-data
buffer-size = 32768
master = true
chmod = 660
reload-os-env = true
auto-procname = true
no-orphans = true
die-on-term = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment