mirror of
https://github.com/arthur-pbty/flint.git
synced 2026-08-01 20:29:03 +02:00
feat: mise à jour de la configuration de production et amélioration des variables d'environnement
This commit is contained in:
+24
-20
@@ -1,31 +1,35 @@
|
||||
NODE_ENV=development
|
||||
NODE_ENV=production
|
||||
|
||||
# Shared infrastructure
|
||||
POSTGRES_DB=discord_saas
|
||||
POSTGRES_USER=discord_saas
|
||||
POSTGRES_PASSWORD=CHANGE_ME_STRONG_POSTGRES_PASSWORD
|
||||
POSTGRES_PORT=5432
|
||||
REDIS_PASSWORD=CHANGE_ME_STRONG_REDIS_PASSWORD
|
||||
DATABASE_URL=postgresql://discord_saas:CHANGE_ME_STRONG_POSTGRES_PASSWORD@localhost:5432/discord_saas
|
||||
DATABASE_SSL=false
|
||||
# PORT PUBLIC
|
||||
WEB_PORT=3000
|
||||
|
||||
# OAuth2 + auth API
|
||||
# DB
|
||||
POSTGRES_DB=
|
||||
POSTGRES_USER=
|
||||
POSTGRES_PASSWORD=
|
||||
|
||||
# REDIS
|
||||
REDIS_PASSWORD=
|
||||
|
||||
# URLS PROD
|
||||
WEB_URL=https://yourdomain.com
|
||||
API_BASE_URL=http://api:4000
|
||||
NEXT_PUBLIC_API_BASE_URL=https://api.yourdomain.com
|
||||
|
||||
# DISCORD
|
||||
DISCORD_CLIENT_ID=
|
||||
DISCORD_CLIENT_SECRET=
|
||||
DISCORD_REDIRECT_URI=http://localhost:4000/auth/discord/callback
|
||||
JWT_SECRET=CHANGE_ME_LONG_RANDOM_SECRET
|
||||
DISCORD_REDIRECT_URI=https://api.yourdomain.com/auth/discord/callback
|
||||
|
||||
# Session/auth
|
||||
JWT_SECRET=
|
||||
JWT_EXPIRES_IN=7d
|
||||
SESSION_COOKIE_NAME=saas_session
|
||||
COOKIE_SECURE=false
|
||||
WEB_URL=http://localhost:3000
|
||||
API_BASE_URL=http://localhost:4000
|
||||
SESSION_COOKIE_NAME=__Host-saas_session
|
||||
COOKIE_SECURE=true
|
||||
|
||||
# Encryption key for bot tokens (32 bytes base64)
|
||||
TOKEN_ENCRYPTION_KEY=REPLACE_WITH_32_BYTE_BASE64_KEY
|
||||
TOKEN_ENCRYPTION_KEY=
|
||||
|
||||
# Multi-tenant API limits
|
||||
TENANT_RATE_LIMIT_MAX=120
|
||||
TENANT_RATE_LIMIT_WINDOW_SECONDS=60
|
||||
|
||||
# Web
|
||||
NEXT_PUBLIC_API_BASE_URL=http://localhost:4000
|
||||
|
||||
Reference in New Issue
Block a user