This repository has been archived by the owner on Sep 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
config.json
55 lines (55 loc) · 1.53 KB
/
config.json
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
{
"server": {
// resolve port based on env var NODE_PORT, falls back to default 8080
"port": "execBase:./utils#resolvePort",
// resolve host based on env var HOSTNAME, falls back to default '0.0.0.0'
"host": "execBase:./utils#resolveHost",
"state": {
"strictHeader": false
},
"router": {
"stripTrailingSlash": true
},
"routes": {
"response": {
"emptyStatusCode": 204
},
"state": {
"failAction": "log"
},
"security": {
"xframe": "sameorigin"
}
}
},
"register": {
"crumb": {
"plugin": "require:@hapi/crumb",
"options": {
"cookieOptions": {
"isSecure": {
"$filter": "env.NODE_ENV",
"production": true,
"$default": false
}
}
}
},
"hapi-pino": {
"plugin": "require:hapi-pino",
"options": {
"$filter": "env.NODE_ENV",
"$default": {},
"development": {
"transport": {
"target": "pino-pretty",
"options": {
"colorize": true,
"translateTime": true
}
}
}
}
}
}
}