Adding Caddyfile.

This commit is contained in:
Bradley Shellnut 2021-04-01 18:52:30 -07:00
parent 15993b4cec
commit 24c7442dfd
2 changed files with 9 additions and 0 deletions

7
Caddyfile Normal file
View file

@ -0,0 +1,7 @@
{
local_certs
}
nodeauth.dev {
reverse_proxy 127.0.0.1:3000
}

View file

@ -60,11 +60,13 @@ export async function refreshTokens(sessionToken, userId, reply) {
path: "/",
domain: "localhost",
httpOnly: true,
secure: true,
expires: refreshExpires,
}).setCookie('accessToken', accessToken, {
path: "/",
domain: "localhost",
httpOnly: true,
secure: true,
})
} catch (e) {
console.error(e)