Created
February 3, 2019 07:47
-
-
Save Alireza2n/8fb8ad13c9d63d3ae4c4e85f5e9251f9 to your computer and use it in GitHub Desktop.
UWSGI ini file for use with uwsgi and systemD
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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