fix: trust proxy for real client IP from Nginx
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 36s

This commit is contained in:
WangDL 2026-05-22 11:20:54 +08:00
parent f2d3f3f13f
commit 63e73ecfaa

View File

@ -10,6 +10,7 @@ async function bootstrap() {
const configService = app.get(ConfigService);
const isProduction = configService.get('app.nodeEnv') === 'production';
app.set("trust proxy", 1);
app.use(helmet());
app.setGlobalPrefix('api', { exclude: ['health', 'admin-api/(.*)', 'internal/(.*)'] });