Commit 9f597ebd54d0ce11f21a52033b1c91e99dc5c587

Authored by Rohan Rangray
1 parent 09cf5c4326
Exists in master

Make the uwsgi app run as the flashy user.

Showing 1 changed file with 3 additions and 2 deletions Inline Diff

# mysite_uwsgi.ini file 1 1 # mysite_uwsgi.ini file
[uwsgi] 2 2 [uwsgi]
3 3
4 uid = 1007
5 gid = 1007
# Django-related settings 4 6 # Django-related settings
# the base directory (full path) 5 7 # the base directory (full path)
chdir = /srv/flashy-backend/ 6 8 chdir = /srv/flashy-backend/
# Django's wsgi file 7 9 # Django's wsgi file
module = flashy.wsgi 8 10 module = flashy.wsgi
# the virtualenv (full path) 9 11 # the virtualenv (full path)
home = /srv/flashy-backend/venv/ 10 12 home = /srv/flashy-backend/venv/
11 13 logger = file:/var/log/uwsgi
logto = /var/log/uwsgi 12
# process-related settings 13 14 # process-related settings
# master 14 15 # master
# master = true 15 16 # master = true
# maximum number of worker processes 16 17 # maximum number of worker processes
# processes = 1 17 18 # processes = 1
http = :7001 18 19 http = :7001
# ... with appropriate permissions - may be needed 19 20 # ... with appropriate permissions - may be needed
# chmod-socket = 664 20 21 # chmod-socket = 664