-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yaml
99 lines (86 loc) · 2.55 KB
/
config.yaml
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
88
89
90
91
92
93
94
95
96
97
98
99
#config values and defaults
# configures log properties
log:
# the log level. Valid values are debug, info, warn, error
level: info
# enables pretty printed log (non-json)
pretty: false
# whether to print an access log
access:
# enables the general access log
general: false
# enables the health endpoint access log
health: false
# enables the metrics endpoint access log
metrics: false
# a map of static HTTP response headers, example value
headers: {}
# a map of file extensions like ".jk" to corresponding media types.
mediatypes:
.js: "application/javascript",
.css: "text/css",
.html: "text/html; charset=UTF-8",
.jpg: "image/jpeg",
.avif: "image/avif",
.jxl: "image/jxl",
.ttf: "font/ttf",
.woff2: "font/woff2",
.txt: "text/plain",
# the path that should be used as an alternative on HTTP 404 responses. Set to empty to disable.
fallback: ""
# the configuration for prometheus metrices
metrics:
# activates the prometheus metrics endpoint
enabled: false
# the prometheus namespace
namespace: websrv
# enables the in-memory filesystem
memoryfs: false
# enables the h2c (unencrypted HTTP2) endpoint
h2c: false
# enables the health endpoint
health: false
# the configuration for various TCP ports
port:
# TCP port for the main web server
webserver: 8080
# TCP port for the health endpoint
health: 8081
# TCP port for the prometheus metrics
metrics: 9090
# TCP port for h2c (unencrypted http2)
h2c: 443
# the configuration for gzip compression handling
gzip:
# activates the gzip response compression
enabled: false
# the level of compression, values are between 1 and 9
compression: 5
# a list of media type (according to the response HTTP Content-Type header) that should be compressed
mediatypes: ["text/css", "text/html", "text/javascript", "font/tff"]
# the configuration for various timeouts
timeout:
# idle timeout in seconds
idle: 30
# read timeout in seconds
read: 10
# write timeout in seconds
write: 10
# shutdown timeout in seconds
shutdown: 5
# the number of seconds to wait before executing a graceful shutdown
shutdowndelay: 5
# the configuration for angular csp fix
angularcsp:
# activates the angular csp fix
enabled:
# regular expression for the files whether the VariableName should be replace, like "^/main.*\.js$"
filepath:
# the string that should be replaced with the Session-Id value
variable:
# sessioncookie config
sessioncookie:
# name of the cookie that will hold the Session-ID
name:
# the max age of the Session-ID cookie
maxage: