fix: Login schlägt fehl bei HTTP ohne Reverse Proxy (Secure-Cookie)

SESSION_SECURE=false in .env deaktiviert das Secure-Flag für Session-
und CSRF-Cookie. Notwendig wenn die App direkt per HTTP erreichbar ist
(kein Nginx/HTTPS davor). Standard bleibt secure=true in production.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
ulsklyc
2026-03-25 09:11:33 +01:00
parent b5bb69ad37
commit f354af0876
2 changed files with 7 additions and 2 deletions
+1
View File
@@ -7,6 +7,7 @@ NODE_ENV=production
# Session
SESSION_SECRET=HIER_EINEN_LANGEN_ZUFAELLIGEN_STRING_EINTRAGEN
# SESSION_SECURE=false # Nur setzen wenn kein HTTPS/Reverse Proxy (z.B. direktes localhost)
# Datenbank (SQLite/SQLCipher)
DB_PATH=/data/oikos.db