fix(config): make FRONTEND_URL optional and default to APP_URL
This commit is contained in:
parent
bfae47f584
commit
5fb92fd582
4 changed files with 21 additions and 8 deletions
|
|
@ -7,11 +7,15 @@ PORT=8080
|
|||
# SQLite-Datenbankdatei (relativ zum backend-Verzeichnis)
|
||||
DB_PATH=wannpassts.db
|
||||
|
||||
# Öffentliche URL des Backends (wichtig für den Google-OAuth-Redirect!)
|
||||
# Öffentliche URL des Backends. Wichtig für:
|
||||
# - Google-OAuth-Redirect: {APP_URL}/api/calendars/google/callback
|
||||
# - Umleitung nach erfolgreichem Google-Login (sofern FRONTEND_URL leer)
|
||||
APP_URL=http://localhost:8080
|
||||
|
||||
# URL des Frontends (dev: Vite, prod: gleiche Origin wie StaticDir)
|
||||
FRONTEND_URL=http://localhost:5173
|
||||
# URL des Frontends – optional! Leer/unset = es wird APP_URL verwendet
|
||||
# (Single-Origin, z. B. Docker). Nur setzen, wenn das Frontend getrennt läuft
|
||||
# (Dev: Vite auf http://localhost:5173).
|
||||
FRONTEND_URL=
|
||||
|
||||
# Statische Secrets – in Produktion zwingend setzen (z. B. `openssl rand -hex 32`)
|
||||
# JWT_SECRET sichert Logins, ENCRYPTION_KEY verschlüsselt gespeicherte Kalender-Tokens.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue