modcomms/.env.deploy.example
Vadym Samoilenko ff1c809249 Prepare production deployment for baic.oliver.solutions/modcomms
- Add VITE_BASE_PATH support to vite.config.ts so assets resolve correctly under /modcomms/ subpath
- Fix home URL in urlState.ts to use BASE_URL instead of hardcoded '/'
- Fix sidebar logo src to use BASE_URL prefix (Vite doesn't rewrite TSX src attributes)
- Fix Azure AD redirect/logout URIs to include BASE_URL subpath in authConfig.ts and App.tsx
- Add migration 009 to remove Mindshare/Zenith and add Rapp agency
- Update .env.deploy.example with production values for baic.oliver.solutions

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-06 11:54:00 +00:00

47 lines
1.8 KiB
Text

# ModComms Deployment Configuration
# Copy this file to .env.deploy and update with your server values
#
# For running prod and dev on the same server, clone the repo twice:
# /opt/modcomms-prod/ - production (main branch)
# /opt/modcomms-dev/ - development (develop branch)
# Then configure each .env.deploy with different values below.
# Docker project name (creates unique container names)
# Examples: modcomms-prod, modcomms-dev
COMPOSE_PROJECT_NAME=modcomms-prod
# Backend port (must be unique per instance)
# Examples: 8000 for prod, 8001 for dev
BACKEND_PORT=8000
# PostgreSQL port (must be unique per instance)
# Examples: 5432 for prod, 5433 for dev
POSTGRES_PORT=5432
# PostgreSQL credentials (change in production!)
POSTGRES_USER=modcomms
POSTGRES_PASSWORD=change_this_in_production
POSTGRES_DB=modcomms
# Frontend deployment directory (Apache document root)
# Production: /var/vhosts/baic.oliver.solutions/htdocs/modcomms
# Dev/staging: /var/www/html/modcomms
FRONTEND_DEPLOY_DIR=/var/vhosts/baic.oliver.solutions/htdocs/modcomms
# CORS origins (should match your frontend domain)
# Multiple origins can be comma-separated
CORS_ORIGINS=https://baic.oliver.solutions
# NOTE: Frontend environment variables (VITE_*) are NOT configured here.
# Create frontend/.env.local manually with:
# VITE_BASE_PATH=/modcomms/
# VITE_BACKEND_URL=https://baic.oliver.solutions/back
# VITE_BACKEND_WS_URL=wss://baic.oliver.solutions/back/ws/analyze
# VITE_AZURE_CLIENT_ID=your_azure_client_id
# VITE_AZURE_TENANT_ID=your_azure_tenant_id
# VITE_AZURE_REDIRECT_URI=https://baic.oliver.solutions/modcomms/
#
# Apache proxy config (production, port 8000):
# ProxyPass /back/ws/analyze ws://localhost:8000/ws/analyze
# ProxyPass /back/ http://localhost:8000/
# ProxyPassReverse /back/ http://localhost:8000/