-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp-config.yaml
More file actions
87 lines (83 loc) · 2.62 KB
/
app-config.yaml
File metadata and controls
87 lines (83 loc) · 2.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# App configurations
app:
name: "native-http-service"
platform: "node-boot"
environment: "development"
defaultErrorHandler: false
port: ${PORT}
api:
routePrefix: "/api"
nullResultCode: 200
undefinedResultCode: 200
paramOptions:
required: false
validations:
enableDebugMessages: true
skipUndefinedProperties: false
skipNullProperties: false
skipMissingProperties: false
whitelist: false
forbidNonWhitelisted: false
forbidUnknownValues: true
stopAtFirstError: true
# Server configurations
server:
cors:
origin: "*"
methods:
- GET
- POST
- DELETE
- PUT
credentials: true
maxAge: 55000
cacheControl: 4096
preflightContinue: true
optionsSuccessStatus: 204
preflight: true
strictPreflight: false
multipart:
throwFileSizeLimit: true
limits:
fieldNameSize: 128
fieldSize: 128
fields: 10
fileSize: 4096
files: 5
headerPairs: 10
openapi:
info:
contact:
name: "Manuel Santos"
email: "ney.br.santos@gmail.com"
url: "https://www.linkedin.com/in/manuel-brito-dos-santos-a7a20a6b/"
license:
name: MIT
url: "https://github.com/nodejs-boot/node-boot/blob/main/LICENSE"
servers:
- url: http://localhost:3000
description: Localhost server
externalDocs:
url: "https://nodeboot.gitbook.io/"
description: "Node-Boot official documentation"
securitySchemes:
basicAuth:
scheme: "basic"
type: "http"
# Storage configurations
persistence:
type: "better-sqlite3"
synchronize: false # False, meaning that the application rely on migrations
cache: true
migrationsRun: true
better-sqlite3:
database: "sample-database.db"
transactions:
# Controls how many hooks (`commit`, `rollback`, `complete`) can be used simultaneously.
# If you exceed the number of hooks of same type, you get a warning. This is a useful to find possible memory leaks.
# You can set this options to `0` or `Infinity` to indicate an unlimited number of listeners.
maxHookHandlers: 10
# Controls storage driver used for providing persistency during the async request timespan.
# You can force any of the available drivers with this option.
# By default, the modern AsyncLocalStorage will be preferred, if it is supported by your runtime.
storageDriver: "AUTO"