# Shadowed Realms Environment Variables Template
# File Location: D:\shadowed-realms-mobile\ShadowedRealmsMobile\src\server\.env.template
# Copy this file to .env and fill in your actual values

# ===============================
# DATABASE CONFIGURATION
# ===============================
POSTGRES_HOST=209.25.140.218
POSTGRES_DB=ShadowedRealms
POSTGRES_USER=gameserver
POSTGRES_PASSWORD=HakeCeStdE6N5jtP/wokS7ur9KNTDKZf3cOPtYqjwiQ=

# ===============================
# REDIS CONFIGURATION
# ===============================
REDIS_HOST=209.25.140.218
REDIS_PORT=6379

# ===============================
# JWT AUTHENTICATION
# ===============================
JWT_SECRET_KEY=Ymn0e9ntVwbV&MUDRN$2wfWF^GDgBYWo
JWT_ISSUER=ShadowedRealms.API
JWT_AUDIENCE=ShadowedRealms.Players

# ===============================
# APPLICATION SETTINGS
# ===============================
ASPNETCORE_ENVIRONMENT=Development
KINGDOM_IDS=1,2,3,4,5
ALLOWED_ORIGINS=https://yourdomain.com,https://admin.yourdomain.com

# ===============================
# ADMIN SETTINGS (Optional)
# ===============================
ADMIN_USER=admin
ADMIN_PASSWORD=admin_secure_password_here

# ===============================
# INSTRUCTIONS
# ===============================
# 1. Copy this file to .env (DO NOT commit .env to git!)
# 2. Replace all placeholder values with your actual configuration
# 3. Make sure your PostgreSQL VM is accessible from Docker containers
# 4. Generate a secure JWT secret key (32+ characters)
# 5. Update POSTGRES_HOST with your actual VM IP address

# ===============================
# DOCKER COMMANDS
# ===============================
# Build and start the API:
# docker-compose up -d shadowed-realms-api

# Start with admin dashboard:
# docker-compose --profile admin up -d

# View logs:
# docker-compose logs -f shadowed-realms-api

# Stop all services:
# docker-compose down

# Rebuild after code changes:
# docker-compose build --no-cache