# Manuelle Installation ohne .deb (git-Checkout + venv unter /opt/oamc-turnier/app). # sudo cp deploy/systemd/oamc-turnier.service /etc/systemd/system/ # sudo systemctl daemon-reload && sudo systemctl enable --now oamc-turnier [Unit] Description=OAMC Turnierauswertung (FastAPI/uvicorn) After=network-online.target postgresql.service Wants=network-online.target [Service] Type=exec User=oamc Group=oamc EnvironmentFile=/etc/oamc-turnier/oamc-turnier.env WorkingDirectory=/opt/oamc-turnier/app ExecStartPre=/opt/oamc-turnier/app/.venv/bin/alembic upgrade head ExecStart=/opt/oamc-turnier/app/.venv/bin/uvicorn oamc.main:app \ --host 127.0.0.1 --port 8000 --proxy-headers --forwarded-allow-ips '*' Restart=on-failure RestartSec=3 NoNewPrivileges=true ProtectSystem=strict ProtectHome=true PrivateTmp=true ReadWritePaths=/var/oamc StateDirectory=oamc-turnier [Install] WantedBy=multi-user.target