Secure proxies
This commit is contained in:
1 parent
de7ba210a4
commit
5a84085959
1 file changed
+2
@@ -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",
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in new issue
Block a user