DoorControl-Backend/doorcontrol-uwsgi.ini

35 lines
614 B
INI

[uwsgi]
strict = true
uid = iot
gid = www-data
socket = /run/uwsgi/app/doorcontrol/dc.sock
#disable-logging = true
workers = 4
chmod-socket = 664
single-interpreter = true
master = true
plugin = python3,http
lazy-apps = true
enable-threads = true
### The followint 2 lines are important if we arent mounted at root of url
manage-script-name = true
mount = /main-door=app:app
#wsgi-file = app.py
#module = app:app
#route-run = fixpathinfo:
virtualenv = /usr/local/doorcontrol/venv
pythonpath = /usr/local/doorcontrol/venv/bin
chdir = /usr/local/doorcontrol/src
daemonize = /var/log/uwsgi/doorcontrol.log