fix: trust proxy for express-rate-limit to prevent crash behind APISIX
Build Institutional Trader / build-and-deploy (push) Successful in 2m4s
Details
Build Institutional Trader / build-and-deploy (push) Successful in 2m4s
Details
This commit is contained in:
parent
a0c54feee5
commit
2ba6425eed
|
|
@ -3,6 +3,9 @@ import helmet from 'helmet';
|
|||
import cors from 'cors';
|
||||
|
||||
export const setupSecurity = (app) => {
|
||||
// Trust proxy for express-rate-limit behind Kubernetes Ingress
|
||||
app.set('trust proxy', 1);
|
||||
|
||||
// Helmet for security headers
|
||||
app.use(helmet({
|
||||
contentSecurityPolicy: {
|
||||
|
|
|
|||
Loading…
Reference in New Issue