This commit is contained in:
root
2025-08-28 21:45:02 +02:00
commit fe932e7a9f
10 changed files with 1906 additions and 0 deletions

18
listapp.service Normal file
View File

@@ -0,0 +1,18 @@
# /etc/systemd/system/listapp.service
[Unit]
Description=ListApp - Flask application for hosts file conversion
After=network.target redis.service
[Service]
User=www-data
Group=www-data
WorkingDirectory=/var/www/listapp
Environment="PATH=/var/www/listapp/venv/bin"
#ExecStart=/var/www/listapp/bin/gunicorn -w 2 --bind 127.0.0.1:8283 app:app
ExecStart=/var/www/listapp/bin/gunicorn -k uvicorn.workers.UvicornWorker -w 4 --bind 127.0.0.1:8283 app:asgi_app
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target