@@ -22,8 +22,14 @@ Type=simple
|
||||
User=franzz
|
||||
Group=www-data
|
||||
WorkingDirectory=/var/www/html/heos
|
||||
ExecStart=/var/www/html/heos/.venv/bin/python /var/www/html/heos/app.py
|
||||
# Add --host 127.0.0.1 above to allow only the reverse proxy in.
|
||||
ExecStart=/var/www/html/heos/.venv/bin/gunicorn --worker-class gthread --workers 1 --threads 8 --bind 0.0.0.0:5443 app:app
|
||||
# Bind 127.0.0.1:5443 above to allow only the reverse proxy in.
|
||||
#
|
||||
# --workers stays at 1 on purpose: the Controller holds the one persistent
|
||||
# AVR Telnet connection and HEOS heartbeat thread, and gunicorn's workers
|
||||
# are separate processes -- more than one would open a second Telnet
|
||||
# connection, which some Denon models refuse. --threads is what gives it
|
||||
# concurrency instead, same as app.py's own threaded=True dev server.
|
||||
Restart=always
|
||||
RestartSec=3
|
||||
|
||||
|
||||
Reference in New Issue
Block a user