Secure proxies

This commit is contained in:
Sebastian Rindom committed 2020-08-21 23:01:08 +02:00
1 parent de7ba210a4
commit 5a84085959
1 file changed
+2
+2
View File
@@ -19,8 +19,10 @@ export default async ({ app }) => {
secret: config.cookieSecret, secret: config.cookieSecret,
duration: 24 * 60 * 60 * 1000, duration: 24 * 60 * 60 * 1000,
activeDuration: 1000 * 60 * 5, activeDuration: 1000 * 60 * 5,
proxy: true,
cookie: { cookie: {
httpOnly: true, httpOnly: true,
secureProxy: true,
secure: process.env.NODE_ENV === "production", secure: process.env.NODE_ENV === "production",
}, },
}) })