# ==============================================
# Mana Core Auth - Environment Variables
# ==============================================

# Application
NODE_ENV=production
PORT=3001

# Database (PostgreSQL)
POSTGRES_DB=manacore
POSTGRES_USER=manacore
POSTGRES_PASSWORD=your-secure-postgres-password-here

# Full database URL (used by app)
DATABASE_URL=postgresql://manacore:your-secure-postgres-password-here@pgbouncer:6432/manacore

# Redis
REDIS_HOST=redis
REDIS_PORT=6379
REDIS_PASSWORD=your-secure-redis-password-here

# JWT Configuration
# Generate RS256 key pair:
# openssl genrsa -out private.pem 2048
# openssl rsa -in private.pem -pubout -out public.pem
JWT_PUBLIC_KEY="-----BEGIN PUBLIC KEY-----\nYOUR_PUBLIC_KEY_HERE\n-----END PUBLIC KEY-----"
JWT_PRIVATE_KEY="-----BEGIN RSA PRIVATE KEY-----\nYOUR_PRIVATE_KEY_HERE\n-----END RSA PRIVATE KEY-----"
JWT_ACCESS_TOKEN_EXPIRY=15m
JWT_REFRESH_TOKEN_EXPIRY=7d
JWT_ISSUER=manacore
JWT_AUDIENCE=manacore

# Stripe
STRIPE_SECRET_KEY=sk_test_your_stripe_secret_key
STRIPE_PUBLISHABLE_KEY=pk_test_your_stripe_publishable_key
STRIPE_WEBHOOK_SECRET=whsec_your_webhook_secret

# CORS
CORS_ORIGINS=http://localhost:3000,http://localhost:8081,https://yourdomain.com

# Traefik / SSL
ACME_EMAIL=your-email@example.com
AUTH_DOMAIN=auth.yourdomain.com

# Credits Configuration
CREDITS_SIGNUP_BONUS=150
CREDITS_DAILY_FREE=5

# Monitoring
GRAFANA_ADMIN_PASSWORD=your-secure-grafana-password

# Rate Limiting
RATE_LIMIT_TTL=60
RATE_LIMIT_MAX=100
