Secure proxies

This commit is contained in:
Sebastian Rindom
2020-08-21 23:01:08 +02:00
parent de7ba210a4
commit 5a84085959

View File

@@ -19,8 +19,10 @@ export default async ({ app }) => {
secret: config.cookieSecret,
duration: 24 * 60 * 60 * 1000,
activeDuration: 1000 * 60 * 5,
proxy: true,
cookie: {
httpOnly: true,
secureProxy: true,
secure: process.env.NODE_ENV === "production",
},
})