Skip to content
Snippets Groups Projects
Commit 2a0b62d2 authored by nico's avatar nico Committed by syuilo
Browse files

Fix #3343 (#3383)

Setting "X-Forwarded-Proto: https" in the SSL proxy is the correct way to do this
parent 653ec0cb
No related branches found
No related tags found
No related merge requests found
......@@ -9,8 +9,8 @@ export default function(ctx: Koa.Context, user: ILocalUser, redirect = false) {
path: '/',
domain: config.hostname,
// SEE: https://github.com/koajs/koa/issues/974
//secure: config.url.startsWith('https'),
secure: false,
// When using a SSL proxy it should be configured to add the "X-Forwarded-Proto: https" header
secure: config.url.startsWith('https'),
httpOnly: false,
expires: new Date(Date.now() + expires),
maxAge: expires
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment