# =============================================================================
# HSE Platform — canonical environment (Master / SAT / SWI inherit from here)
# =============================================================================

# --- Database (MySQL) ---------------------------------------------------------

# Local database
# DB_HOST=localhost
# DB_PORT=3306
# DB_USER=root
# DB_PASSWORD=12345
# DB_NAME=hse

# Remote database
DB_HOST=localhost
DB_USER=eframen51
DB_PASSWORD="NewPass@3034#ru"
DB_NAME=eframen51_hse

# --- JWT / session ------------------------------------------------------------
JWT_SECRET=change-me-in-production
JWT_EXPIRES_IN=7d
JWT_LAUNCH_EXPIRES_IN=60s
JWT_SESSION_EXPIRES_IN=7d
SESSION_SECRET=

# --- Platform URL (single source of truth) ------------------------------------
# Production: set your public domain (not localhost). All apps + API use this.
# PUBLIC_ORIGIN=https://hse-masterdashboard.eframeehs.in
API_BASE_URL=https://api-hse-masterdashboard.eframeehs.in
#
# Local dev: leave PUBLIC_ORIGIN unset (Master 5174, SAT 3000, SWI 5175, API 5012).
# Localhost values in PUBLIC_ORIGIN are ignored automatically.

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

# --- Optional overrides (uncomment only when needed) --------------------------
# DEV_MASTER_URL=http://localhost:5174
# DEV_SAT_URL=http://localhost:3000
# DEV_SWI_URL=http://localhost:5175
# MASTER_APP_PATH=/
# SAT_APP_PATH=/sat
# SWI_APP_PATH=/swi
ALLOWED_ORIGINS=https://hse-masterdashboard.eframeehs.in,https://hse-sat.eframeehs.in,https://hse-swi.eframeehs.in
# FRONTEND_URL=http://localhost:5174
MASTER_DASHBOARD_URL=https://hse-masterdashboard.eframeehs.in
SAT_FRONTEND_URL=https://hse-sat.eframeehs.in
SWI_FRONTEND_URL=https://hse-swi.eframeehs.in
# SAT_API_PREFIX=/api/sat
# SAT_API_ORIGIN=

# --- Google OAuth -------------------------------------------------------------
GOOGLE_CLIENT_ID_WEB=
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
GOOGLE_CALLBACK_URL=/api/master/auth/google/callbackAPI_BASE_URL=https://api-hse-masterdashboard.eframeehs.in
