Skip to content

Instantly share code, notes, and snippets.

@NanoDano
Last active July 20, 2020 03:32
Show Gist options
  • Save NanoDano/5d8589df25ad3169505cedfde4bb6e87 to your computer and use it in GitHub Desktop.
Save NanoDano/5d8589df25ad3169505cedfde4bb6e87 to your computer and use it in GitHub Desktop.
uWSGI example INI file
# /etc/uwsgi.d/uwsgi_example.ini
# Make sure the uwsgi file+dir has right permissions (Read by uwsgi)
[uwsgi]
plugins=python3
chdir=/srv/myapp
module=myapp.wsgi:application
env='DJANGO_SETTINGS_MODULE=myapp.settings'
home=/srv/myapp/venv
pidfile=/run/uwsgi/myapp.pid
socket=127.0.0.1:8001
master=True
processes=5
harakiri=20
max-requests=5000
vacuum=True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment