mirror of
https://github.com/complexcaresolutions/dak.c2s.git
synced 2026-03-17 18:23:42 +00:00
Includes systemd service unit, nginx reverse proxy config, and automated deployment script. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
17 lines
482 B
Desktop File
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
|