dak.c2s/deploy/dak-backend.service
CCS Admin fc83db640e feat: add deployment configuration for Hetzner 1
Includes systemd service unit, nginx reverse proxy config, and
automated deployment script.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 08:42:08 +00:00

17 lines
482 B
Desktop File

[Unit]
Description=DAK Zweitmeinungs-Portal Backend (FastAPI/Uvicorn)
After=network.target mariadb.service
[Service]
Type=simple
User=dak
Group=dak
WorkingDirectory=/opt/dak-portal/backend
Environment="PATH=/opt/dak-portal/backend/venv/bin:/usr/local/bin:/usr/bin"
EnvironmentFile=/opt/dak-portal/backend/.env
ExecStart=/opt/dak-portal/backend/venv/bin/uvicorn app.main:app --host 127.0.0.1 --port 8000 --workers 2
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target