corrosionmgmt.com now serves LandingView as the default page with marketing routes at root level. panel.corrosionmgmt.com continues serving the admin panel unchanged. /site/* backward compat via redirects on marketing domain. - nginx: Add bare domain server block (only proxies /api/early-access/) - router: Detect hostname at module load, generate domain-specific routes - MarketingLayout: Named routes for nav, external <a> tags for auth links - LandingView: CTAs point to panel domain via VITE_PANEL_URL Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
45 lines
1.1 KiB
Plaintext
45 lines
1.1 KiB
Plaintext
# Corrosion Platform — Environment Variables
|
|
# Copy to .env and fill in values
|
|
|
|
# Database
|
|
DATABASE_URL=postgres://corrosion:corrosion_dev@localhost:5432/corrosion
|
|
DATABASE_MAX_CONNECTIONS=20
|
|
DB_PASSWORD=corrosion_dev
|
|
|
|
# NATS
|
|
NATS_URL=nats://localhost:4222
|
|
|
|
# Auth
|
|
JWT_SECRET=change-me-to-a-random-64-char-string
|
|
JWT_ACCESS_EXPIRY_SECONDS=900
|
|
JWT_REFRESH_EXPIRY_SECONDS=604800
|
|
ENCRYPTION_KEY=change-me-to-a-random-32-byte-hex-key
|
|
|
|
# Bootstrap Admin (creates admin user on first run if no users exist)
|
|
ADMIN_EMAIL=admin@corrosionmgmt.com
|
|
ADMIN_PASSWORD=corrosion-dev-2026
|
|
ADMIN_USERNAME=Commander
|
|
ADMIN_LICENSE_KEY=CORROSION-DEV-0001-ADMIN
|
|
|
|
# Cloudflare (subdomain provisioning)
|
|
CLOUDFLARE_API_TOKEN=
|
|
CLOUDFLARE_ZONE_ID=
|
|
BASE_DOMAIN=corrosionmgmt.com
|
|
|
|
# Steam API (force wipe detection)
|
|
STEAM_API_KEY=
|
|
|
|
# Email (SMTP)
|
|
SMTP_HOST=smtp.example.com
|
|
SMTP_PORT=587
|
|
SMTP_USERNAME=
|
|
SMTP_PASSWORD=
|
|
SMTP_FROM=noreply@corrosionmgmt.com
|
|
|
|
# Server
|
|
API_PORT=3000
|
|
FRONTEND_URL=http://localhost:5174
|
|
|
|
# Frontend (Vite — must be prefixed with VITE_)
|
|
VITE_PANEL_URL=https://panel.corrosionmgmt.com
|