# 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

DB_NAME=hse



JWT_SECRET=change-me-in-production

JWT_EXPIRES_IN=7d

JWT_LAUNCH_EXPIRES_IN=60s

JWT_SESSION_EXPIRES_IN=7d



# === Platform URLs (single source of truth) ===

# Production only — set PUBLIC_ORIGIN to your real domain (not localhost):

# PUBLIC_ORIGIN=https://vlearnway.in

#

# Leave PUBLIC_ORIGIN unset for local dev (separate ports: 5174 / 3000 / 5175).

# Localhost PUBLIC_ORIGIN values are ignored automatically.



# Optional dev per-app URL overrides:

# DEV_MASTER_URL=http://localhost:5174

# DEV_SAT_URL=http://localhost:3000

# DEV_SWI_URL=http://localhost:5175



# Unified API (combined-server.mjs)

PORT=5012

APP_PORT=5012



# Optional app path prefixes on same host (default / for each)

# MASTER_APP_PATH=/

# SAT_APP_PATH=/

# SWI_APP_PATH=/



# CORS — auto-derived from PUBLIC_ORIGIN when omitted

# ALLOWED_ORIGINS=



# Legacy fallbacks (only used when PUBLIC_ORIGIN is unset):

# FRONTEND_URL=http://localhost:5174

# MASTER_DASHBOARD_URL=http://localhost:5174



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

