fix(security): revert synchronize:true → prod-safe + .env.example placeholders
This commit is contained in:
@@ -12,11 +12,11 @@ FRONTEND_URL=http://localhost:5173
|
|||||||
|
|
||||||
# SuperOAuth — service externe d'authentification
|
# SuperOAuth — service externe d'authentification
|
||||||
SUPER_OAUTH_URL=http://localhost:3000
|
SUPER_OAUTH_URL=http://localhost:3000
|
||||||
SUPER_OAUTH_JWT_SECRET=
|
SUPER_OAUTH_JWT_SECRET=<JWT secret SuperOAuth>
|
||||||
|
|
||||||
# Cookie signing
|
# Cookie signing
|
||||||
COOKIE_SECRET=
|
COOKIE_SECRET=
|
||||||
|
|
||||||
# Twitch EventSub webhook
|
# Twitch EventSub webhook
|
||||||
TWITCH_WEBHOOK_SECRET=<secret EventSub>
|
TWITCH_WEBHOOK_SECRET=<secret EventSub Twitch>
|
||||||
TWITCH_CLIENT_ID=<app client id>
|
TWITCH_CLIENT_ID=<app client id>
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ import { HealthController } from './common/health.controller';
|
|||||||
type: 'mysql',
|
type: 'mysql',
|
||||||
url: config.get<string>('DATABASE_URL'),
|
url: config.get<string>('DATABASE_URL'),
|
||||||
autoLoadEntities: true,
|
autoLoadEntities: true,
|
||||||
synchronize: true, // first deploy only — revert after tables created
|
synchronize: config.get('NODE_ENV') !== 'production',
|
||||||
logging: config.get('NODE_ENV') === 'development',
|
logging: config.get('NODE_ENV') === 'development',
|
||||||
}),
|
}),
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in New Issue
Block a user