Files
adlist_mikrotik/listapp.service
Mateusz Gruszczyński eac2002f56 poprawka bledu
2025-08-29 12:13:06 +02:00

26 lines
587 B
Desktop File

[Unit]
Description=Mikrotik Adlist - Flask application for hosts file conversion
After=network-online.target redis.service
Wants=network-online.target
[Service]
User=www-data
Group=www-data
WorkingDirectory=/var/www/adlist_mikrotik
EnvironmentFile=-/var/www/adlist_mikrotik/.env
Environment="PATH=/var/www/adlist_mikrotik/venv/bin"
ExecStart=/var/www/adlist_mikrotik/venv/bin/gunicorn \
-k uvicorn.workers.UvicornWorker \
--workers 4 \
--bind 127.0.0.1:8283 \
--keep-alive 30 \
--timeout 90 \
app:asgi_app
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target