bump medusa
This commit is contained in:
@@ -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",
|
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user