# Canonical HSE environment — copy to master_dashboard_backend/.env and edit.
# DB and JWT credentials live here only; SAT and SWI backends inherit these values.

DB_HOST=127.0.0.1
DB_PORT=3306
DB_USER=root
DB_PASSWORD=12345

JWT_SECRET=change-me-in-production
JWT_EXPIRES_IN=7d
JWT_LAUNCH_EXPIRES_IN=60s
JWT_SESSION_EXPIRES_IN=7d

# Unified API (combined-server.mjs)
PORT=5012
APP_PORT=5012

# Master Dashboard SPA
FRONTEND_URL=http://localhost:5174
MASTER_DASHBOARD_URL=http://localhost:5174

# CORS — comma-separated frontend origins
ALLOWED_ORIGINS=http://localhost:3000,http://127.0.0.1:3000,http://localhost:5174,http://127.0.0.1:5174,http://localhost:5175,http://127.0.0.1:5175

SESSION_SECRET=

# Google OAuth
GOOGLE_CLIENT_ID_WEB=
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
GOOGLE_CALLBACK_URL=/api/master/auth/google/callback

# SAT API (optional overrides)
# SAT_API_PREFIX=/api/sat
# SAT_API_ORIGIN=http://localhost:5012
