amazon-transcreation/.env.production.example
DJP 3fe93c2b22 feat: configure deployment for optical-dev.oliver.solutions/amazon-transcreation
- Apache reverse proxy config (replaces nginx — server already runs Apache)
- Next.js basePath set to /amazon-transcreation for subpath deployment
- Frontend on port 3050 (3000 taken), backend on 8040
- WebSocket URL auto-detects protocol from page location
- Deploy script handles Apache config injection into existing vhost
- All Docker ports bound to 127.0.0.1 (Apache handles external access)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-10 13:05:12 -04:00

31 lines
940 B
Text

# ============================================================
# Production Environment — copy to .env and fill in values
# ============================================================
# Database (internal Docker network — no need to change host/port)
DATABASE_URL=postgresql+asyncpg://transcreation:CHANGE_ME_DB_PASSWORD@db:5432/transcreation
DB_USER=transcreation
DB_PASSWORD=CHANGE_ME_DB_PASSWORD
DB_NAME=transcreation
# Redis (internal Docker network)
REDIS_URL=redis://redis:6379/0
# Anthropic API
ANTHROPIC_API_KEY=sk-ant-YOUR_KEY_HERE
# Auth
JWT_SECRET_KEY=CHANGE_ME_GENERATE_WITH_python3_-c_"import secrets; print(secrets.token_hex(32))"
JWT_ALGORITHM=HS256
JWT_EXPIRY_HOURS=8
# Storage
STORAGE_ROOT=/storage
# LLM Model
LLM_MODEL=claude-sonnet-4-6
# Frontend (set at Docker build time via docker-compose.prod.yml)
NEXT_PUBLIC_API_URL=/amazon-transcreation
NEXT_PUBLIC_WS_URL=
NEXT_PUBLIC_BASE_PATH=/amazon-transcreation