29 lines
630 B
TypeScript
Executable File
29 lines
630 B
TypeScript
Executable File
import { defineConfig } from '@adonisjs/core/http'
|
|
|
|
/**
|
|
* The configuration settings used by the HTTP server
|
|
*/
|
|
export const http = defineConfig({
|
|
generateRequestId: true,
|
|
allowMethodSpoofing: false,
|
|
|
|
/**
|
|
* Enabling async local storage will let you access HTTP context
|
|
* from anywhere inside your application.
|
|
*/
|
|
useAsyncLocalStorage: false,
|
|
|
|
/**
|
|
* Manage cookies configuration. The settings for the session id cookie are
|
|
* defined inside the "config/session.ts" file.
|
|
*/
|
|
cookie: {
|
|
domain: '',
|
|
path: '/',
|
|
maxAge: '2h',
|
|
httpOnly: true,
|
|
secure: true,
|
|
sameSite: 'lax',
|
|
},
|
|
})
|