Created
April 1, 2018 23:42
-
-
Save charlesthk/ac5ba74cb74fe5d5b46e1489f4f73070 to your computer and use it in GitHub Desktop.
uWSGI sample conf for Django (https://medium.com/@charlesthk/deploy-nginx-django-uwsgi-on-aws-ec2-amazon-linux-517a683163c6)
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] | |
module = project.wsgi:application | |
master = true | |
pidfile = django.uwsgi.pid | |
enable-threads = true | |
http = 127.0.0.1:8000 | |
processes = 5 | |
# respawn processes taking more than 50 seconds | |
harakiri = 50 | |
# respawn processes after serving 5000 requests | |
max-requests = 5000 | |
# clear environment on exit | |
vacuum = true | |
# optional path to a virtualenv | |
home = venv | |
# background the process | |
daemonize = django.uwsgi.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment