This repository has been archived on 2026-04-03. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
core/server/.env.example
2026-02-23 01:57:28 +00:00

40 lines
1.6 KiB
Plaintext

# Chat Switchboard v0.9 - Server Environment Variables
# Copy this file to .env and fill in the values
# ── Server ───────────────────────────────────
PORT=8080
ENVIRONMENT=development
BASE_PATH= # e.g. /chat for path-based routing
# ── Database (PostgreSQL) ────────────────────
DB_HOST=localhost
DB_PORT=5432
DB_USER=chat_switchboard
DB_PASSWORD=your-secure-password-here
DB_NAME=chat_switchboard
DB_SSL_MODE=disable
DB_MAX_CONNS=25
# ── Auth ─────────────────────────────────────
JWT_SECRET=your-super-secret-jwt-key-change-in-production
JWT_EXPIRATION=24h
JWT_ISSUER=chat-switchboard
# ── Bootstrap Admin ──────────────────────────
# Creates or updates admin account on every startup.
# Set via K8s secret or env. Leave blank to skip.
SWITCHBOARD_ADMIN_USERNAME=
SWITCHBOARD_ADMIN_PASSWORD=
# ── CORS ─────────────────────────────────────
CORS_ALLOWED_ORIGINS=http://localhost:3000,http://localhost:8080
# ── Banner (optional) ───────────────────────
# Environment classification banner.
# BANNER_TEXT=DEVELOPMENT
# BANNER_COLOR=#007a33
# BANNER_POSITION=top
# ── Logging ──────────────────────────────────
LOG_LEVEL=info