trust proxy
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
ale 2024-11-10 06:39:46 +01:00
parent 5deb70a0b0
commit 938d5f804c

View File

@ -134,7 +134,7 @@ app.locals.created = 0
app.locals.updated = 0 app.locals.updated = 0
app.disable('x-powered-by') app.disable('x-powered-by')
app.set('json spaces', 2) app.set('json spaces', 2)
app.set('trust proxy', true) app.set('trust proxy', 1)
logger(app) logger(app)
app.use(rateLimit({ app.use(rateLimit({
windowMs: 1 * 60 * 1000, // 1 minutes windowMs: 1 * 60 * 1000, // 1 minutes