Skip to content

Instantly share code, notes, and snippets.

@Alireza2n
Created February 3, 2019 07:47
Show Gist options
  • Save Alireza2n/8fb8ad13c9d63d3ae4c4e85f5e9251f9 to your computer and use it in GitHub Desktop.
Save Alireza2n/8fb8ad13c9d63d3ae4c4e85f5e9251f9 to your computer and use it in GitHub Desktop.
UWSGI ini file for use with uwsgi and systemD
[uwsgi]
chdir=/home/alireza/app # Replace with your own project root
module=app.wsgi:application # Replace with your own app name
virtualenv =/home/alireza/app/.venv # Replace with path of your own virtualenv
env=DJANGO_SETTINGS_MODULE=app.settings.prod # Replace with your own settings module
master=true
chmod-socket = 666
socket = /tmp/my_app.sock # Replace with any name you like
processes = %(%k * 2)
enable-threads = true
threads = 2
offload-threads = %k
harakiri = 600
limit-as = 1024
max-requests = 5000
vacuum=true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment