fix: trust proxy for real client IP from Nginx
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 36s
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 36s
This commit is contained in:
parent
f2d3f3f13f
commit
63e73ecfaa
@ -10,6 +10,7 @@ async function bootstrap() {
|
|||||||
const configService = app.get(ConfigService);
|
const configService = app.get(ConfigService);
|
||||||
const isProduction = configService.get('app.nodeEnv') === 'production';
|
const isProduction = configService.get('app.nodeEnv') === 'production';
|
||||||
|
|
||||||
|
app.set("trust proxy", 1);
|
||||||
app.use(helmet());
|
app.use(helmet());
|
||||||
|
|
||||||
app.setGlobalPrefix('api', { exclude: ['health', 'admin-api/(.*)', 'internal/(.*)'] });
|
app.setGlobalPrefix('api', { exclude: ['health', 'admin-api/(.*)', 'internal/(.*)'] });
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user