7d75e74679
Erlaubt mehrere/normalisierte CORS-Origins mit Dev-Fallbacks für Session-Cookies, stellt express.json wieder auf 50mb für große Sync-Payloads und setzt die Zugriffsrolle beim Wechsel in geteilte Logbücher ohne Cache korrekt. Co-authored-by: Cursor <cursoragent@cursor.com>
27 lines
1.0 KiB
Bash
Executable File
27 lines
1.0 KiB
Bash
Executable File
OpenWeatherMapAPIKey=<owm_api_key>
|
|
|
|
# Passkey configuration (WebAuthn Relying Party ID and Origin)
|
|
# For local dev: localhost and http://localhost
|
|
# For production: e.g. kapteins-daagbok.eu and https://kapteins-daagbok.eu
|
|
RP_ID=localhost
|
|
# Must match the frontend URL (Vite dev: http://localhost:5173; Docker: http://localhost)
|
|
ORIGIN=http://localhost:5173
|
|
# Optional: comma-separated CORS origins (defaults to ORIGIN; dev also allows 127.0.0.1:5173)
|
|
# CORS_ORIGINS=http://localhost:5173,http://127.0.0.1:5173
|
|
|
|
# API session signing (min. 32 chars; required in production)
|
|
# Generate: openssl rand -base64 48
|
|
SESSION_SECRET=
|
|
|
|
# Web Push (VAPID) — generate with: npx web-push generate-vapid-keys
|
|
# Public key may also be set on the client as VITE_VAPID_PUBLIC_KEY
|
|
VAPID_PUBLIC_KEY=
|
|
VAPID_PRIVATE_KEY=
|
|
VAPID_SUBJECT=mailto:support@kapteins-daagbok.eu
|
|
|
|
# Feedback via Ntfy (https://ntfy.sh or self-hosted)
|
|
# NTFY_TOPIC: topic name only (not the full URL)
|
|
NTFY_SERVER=https://ntfy.sh
|
|
NTFY_TOPIC=kapteins-daagbok-feedback
|
|
NTFY_TOKEN=tk_example_ntfy_access_token
|