oedb-backend/server_config/oedb-uwsgi.service
2025-09-18 22:24:59 +02:00

28 lines
No EOL
674 B
Desktop File

[Unit]
Description=uWSGI service for OpenEventDatabase backend
After=network.target postgresql.service
[Service]
User=www-data
Group=www-data
WorkingDirectory=/home/poule/encrypted/oedb-backend
Environment="DB_USER=cipherbliss"
Environment="POSTGRES_PASSWORD=blahblahblah"
ExecStart=/home/poule/encrypted/oedb-backend/venv/bin/uwsgi \
--http :8080 \
--wsgi-file backend.py \
--callable app \
--master \
--processes 4 \
--threads 2 \
--vacuum
Restart=on-failure
RestartSec=5s
KillSignal=SIGQUIT
Type=notify
NotifyAccess=all
StandardError=syslog
StandardOutput=syslog
[Install]
WantedBy=multi-user.target