Initial commit
This commit is contained in:
19
config/app.js
Normal file
19
config/app.js
Normal file
@@ -0,0 +1,19 @@
|
||||
import env from '#start/env';
|
||||
import app from '@adonisjs/core/services/app';
|
||||
import { Secret } from '@adonisjs/core/helpers';
|
||||
import { defineConfig } from '@adonisjs/core/http';
|
||||
export const appKey = new Secret(env.get('APP_KEY'));
|
||||
export const http = defineConfig({
|
||||
generateRequestId: true,
|
||||
allowMethodSpoofing: true,
|
||||
useAsyncLocalStorage: false,
|
||||
cookie: {
|
||||
domain: '',
|
||||
path: '/',
|
||||
maxAge: '2h',
|
||||
httpOnly: true,
|
||||
secure: app.inProduction,
|
||||
sameSite: 'lax',
|
||||
},
|
||||
});
|
||||
//# sourceMappingURL=app.js.map
|
||||
Reference in New Issue
Block a user