Skip to content

Instantly share code, notes, and snippets.

@arturataide
Created September 1, 2020 21:32
Show Gist options
  • Select an option

  • Save arturataide/bd8f44e01f592d015bf607cbe12ea33f to your computer and use it in GitHub Desktop.

Select an option

Save arturataide/bd8f44e01f592d015bf607cbe12ea33f to your computer and use it in GitHub Desktop.
uWSGI configuration file
[uwsgi]
base = /PROJECT_FOLDER
chdir = %(base)
home = %(base)
pidfile= %(base)/myproject.pid
pythonpath= /usr/local
uid = www-data
gid = www-data
module = api.wsgi:application # path to wsgy.py file
socket = :8000
processes = 8
threads = 4
master = true
chmod-socket = 660
vacuum = true
die-on-term = true
harakiri = 20
max-requests = 5000
logs = %(base)/uwsgi_info.logs
daemonize = %(base)/uwsgi.logs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment