bump medusa

This commit is contained in:
Sebastian Rindom
2020-08-21 23:10:21 +02:00
parent c61d35834c
commit df747607d5
+2 -4
View File
@@ -6,7 +6,7 @@ import morgan from "morgan"
import config from "../config" import config from "../config"
export default async ({ app }) => { export default async ({ app }) => {
app.enable("trust proxy") app.set("trust proxy", 1)
app.use( app.use(
morgan("combined", { morgan("combined", {
skip: () => process.env.NODE_ENV === "test", skip: () => process.env.NODE_ENV === "test",
@@ -19,11 +19,9 @@ 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, secureProxy: process.env.NODE_ENV === "production",
secure: process.env.NODE_ENV === "production",
}, },
}) })
) )