fix Gunicorn not working on linux + missing flask_migrate

This commit is contained in:
ghostersk
2025-05-28 09:50:41 +01:00
parent b5fc6728a8
commit 98ea741e1d
4 changed files with 54 additions and 10 deletions
+26
View File
@@ -0,0 +1,26 @@
[Unit]
Description=WinAuthMon Python Web Service
After=network.target
StartLimitIntervalSec=0
[Service]
Type=simple
User=appuser
Group=appuser
WorkingDirectory=/opt/winauthmon-server
Environment=PYTHONUNBUFFERED=1
ExecStart=/opt/winauthmon-server/.venv/bin/python app.py --gunicorn
Restart=always
RestartSec=5
StandardOutput=journal
StandardError=journal
# Security settings
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=strict
ReadWritePaths=/opt/winauthmon-server
ProtectHome=true
[Install]
WantedBy=multi-user.target