- added LicenseController.ts and MimetypeController for enabling mime_types and licences
Some checks failed
CI Pipeline / japa-tests (push) Failing after 58s

- add new authors and contributors only by unique email addresses
- allow multiple file upload
- added validation rule for validating length of uploaded files
- modified Dockerfile for starting "bin/server.js" instead of *server.js"
- npm updates
This commit is contained in:
Kaimbacher 2024-06-14 12:38:04 +02:00
parent 770e791613
commit ac473b1e72
27 changed files with 1720 additions and 914 deletions

View file

@ -13,7 +13,7 @@ import env from '#start/env';
// import { ServerConfig } from "@adonisjs/core/services/server";
// import { LoggerConfig } from "@adonisjs/core/types/logger";
// import { ValidatorConfig } from "@adonisjs/validator/types";
import { defineConfig } from "@adonisjs/core/http";
import { defineConfig } from '@adonisjs/core/http';
/*
|--------------------------------------------------------------------------
@ -40,7 +40,7 @@ export const appKey: string = env.get('APP_KEY');
|
*/
export const http = defineConfig({
/*
/*
|--------------------------------------------------------------------------
| Allow method spoofing
|--------------------------------------------------------------------------
@ -51,16 +51,16 @@ export const http = defineConfig({
| so on.
|
*/
allowMethodSpoofing: false,
allowMethodSpoofing: false,
/*
/*
|--------------------------------------------------------------------------
| Subdomain offset
|--------------------------------------------------------------------------
*/
subdomainOffset: 2,
subdomainOffset: 2,
/*
/*
|--------------------------------------------------------------------------
| Request Ids
|--------------------------------------------------------------------------
@ -69,9 +69,9 @@ export const http = defineConfig({
| HTTP request and set it as `x-request-id` header.
|
*/
generateRequestId: false,
generateRequestId: false,
/*
/*
|--------------------------------------------------------------------------
| Trusting proxy servers
|--------------------------------------------------------------------------
@ -80,9 +80,9 @@ export const http = defineConfig({
| headers.
|
*/
trustProxy: proxyAddr.compile('loopback'),
trustProxy: proxyAddr.compile('loopback'),
/*
/*
|--------------------------------------------------------------------------
| Generating Etag
|--------------------------------------------------------------------------
@ -90,31 +90,30 @@ export const http = defineConfig({
| Whether or not to generate an etag for every response.
|
*/
etag: false,
etag: false,
/*
/*
|--------------------------------------------------------------------------
| JSONP Callback
|--------------------------------------------------------------------------
*/
jsonpCallbackName: 'callback',
jsonpCallbackName: 'callback',
/*
/*
|--------------------------------------------------------------------------
| Cookie settings
|--------------------------------------------------------------------------
*/
cookie: {
domain: '',
path: '/',
maxAge: '2h',
httpOnly: true,
secure: false,
sameSite: false,
},
cookie: {
domain: '',
path: '/',
maxAge: '2h',
httpOnly: true,
secure: false,
sameSite: false,
},
});
/*
|--------------------------------------------------------------------------
| Profiler