oedb-backend/server_config/oedb-uwsgi.service

29 lines
734 B
SYSTEMD
Raw Normal View History

2025-09-18 14:50:30 +02:00
[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=tralalahihou"
ExecStartPre=/home/poule/encrypted/oedb-backend/setup_db.sh
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