Skip to content

Instantly share code, notes, and snippets.

@ma1onso
Last active March 11, 2017 02:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ma1onso/ddd90747bd541fb4e76d5a6e57730e8a to your computer and use it in GitHub Desktop.
Save ma1onso/ddd90747bd541fb4e76d5a6e57730e8a to your computer and use it in GitHub Desktop.
.ini file for uwsgi configurations - Django
# adboozter_uwsgi.ini file
[uwsgi]
project = NAME
base = /home/USER
# Django-related settings
# the base directory (full path)
chdir = %(base)/www/%(project)
# Django's wsgi file
module = %(project).wsgi:application
# the virtualenv (full path)
home = %(base)/.virtualenvs/%(project)
# process-related settings
# master
master = true
# maximum number of worker processes
processes = 10
# maximum number of threads
threads = 2
# monitoring
stats = 127.0.0.1:9191
# the socket (use the full path to be safe
socket = %(base)/www/%(project)/%(project).sock
# clear environment on exit
vacuum = true
# harakiri = 20
# max-requests = 5000
# security-related settings
# user
uid = USER
# group
gui = USER_GROUP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment