Add Docker Compose configuration and environment files for local and production setups
- Created docker-compose.docker-local.yml for local testing of frontend and backend services. - Added .env.development for development environment configuration. - Introduced .env.docker-local for local Docker environment settings. - Added .env.production for production environment configuration for Synology deployment.
This commit is contained in:
33
code/websites/pokedex.online/server/.env.production
Normal file
33
code/websites/pokedex.online/server/.env.production
Normal file
@@ -0,0 +1,33 @@
|
||||
# ====================================================================
|
||||
# BACKEND PRODUCTION ENVIRONMENT (app.pokedex.online)
|
||||
# ====================================================================
|
||||
# Used in docker-compose.production.yml for Synology deployment
|
||||
# Supports frontend at https://app.pokedex.online
|
||||
# ====================================================================
|
||||
|
||||
# Deployment Target
|
||||
DEPLOYMENT_TARGET=production
|
||||
|
||||
# Server Configuration
|
||||
NODE_ENV=production
|
||||
PORT=3000
|
||||
|
||||
# Frontend URL (for CORS)
|
||||
FRONTEND_URL=https://app.pokedex.online
|
||||
|
||||
# Discord OAuth Configuration
|
||||
VITE_DISCORD_CLIENT_ID=1466544972059775223
|
||||
DISCORD_CLIENT_SECRET=dMRPAmWxXKQdWOKzgkPbcdsHNCifqtYV
|
||||
DISCORD_REDIRECT_URI=https://app.pokedex.online/oauth/callback
|
||||
VITE_DISCORD_REDIRECT_URI=https://app.pokedex.online/oauth/callback
|
||||
|
||||
# Challonge OAuth Configuration
|
||||
CHALLONGE_CLIENT_ID=9d40113bdfd802c6fb01137fa9041b23342ce4f100caedad6dee865a486662df
|
||||
CHALLONGE_CLIENT_SECRET=5dc805e41001281c2415b5ffd6b85a7855fc08b6019d9be2907fdb85ab2d56fc
|
||||
CHALLONGE_REDIRECT_URI=https://app.pokedex.online/oauth/callback
|
||||
|
||||
# Discord User Permissions
|
||||
DISCORD_ADMIN_USERS=.fraggin
|
||||
|
||||
# Session Security (IMPORTANT: Set a strong secret in production!)
|
||||
SESSION_SECRET=production-secret-change-this-to-secure-random-string
|
||||
Reference in New Issue
Block a user