Deployment-Guide
Server-Infos
|
|
| Server |
armarium-test |
| IPv4 |
178.104.167.52 |
| OS |
Ubuntu 24.04 |
| SSH |
ssh root@178.104.167.52 |
| App-Verzeichnis |
/home/armarium/armarium-suite/ |
| Frontend-Dist |
/home/armarium/armarium-suite/frontend/dist/budget-frontend/browser |
| Systemd-Service |
armarium.service |
| Gunicorn Socket |
unix:/run/armarium/armarium.sock |
| Nginx-Config |
/etc/nginx/sites-enabled/ |
| Domain |
https://app.armarium.ch (Certbot, HTTPS) |
Deploy-Schritte
Logs
.env auf dem Server
Die Datei /home/armarium/armarium-suite/backend/.env ist nicht im Repo und muss nach dem ersten Setup manuell gepflegt werden.
Neue Variablen nach einem Update manuell ergänzen:
Wichtige Produktions-Variablen
Nginx
Nginx-Config unter /etc/nginx/sites-enabled/. Nach Änderungen:
Wichtig: Die /api/- und /admin/-Location-Blöcke müssen proxy_set_header X-Forwarded-Proto https; enthalten — sonst erzeugt Django's SECURE_SSL_REDIRECT eine 301-Schleife.
E-Mail testen
Bekannte Hinweise
- Roboto-Fonts erscheinen als 404 in Nginx-Logs (
/media/roboto-*) — unkritisch, Fonts laden aus dem Angular-Bundle
DEBUG=False aktiviert automatisch SMTP, HTTPS-Redirect, HSTS und Secure Cookies