-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.json
More file actions
64 lines (64 loc) · 1.33 KB
/
config.json
File metadata and controls
64 lines (64 loc) · 1.33 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
{
"logging": {
"backend": "stdout",
"flags": "date,time,micro,utc",
"filename": "",
"filemode": 384,
"level": "warn"
},
"server": {
"addr": "0.0.0.0",
"port": 8000,
"scheme": "http",
"name": "",
"root": "/var/www",
"base": "",
"index": "index.html",
"csplog": "/csplog",
"read_timeout": "2s",
"header_timeout": "5s",
"write_timeout": "300s",
"idle_timeout": "900s",
"keepalive": "90s",
"shutdown_timeout": "15s",
"tls_min_version": 3,
"tls_max_version": 3,
"tls_ca": [],
"tls_ca_file": "",
"tls_cert": [],
"tls_cert_file": "",
"tls_key": [],
"tls_key_file": ""
},
"template": {
"enable": true,
"left": "<[",
"right": "]>",
"maxreplace": 32,
"match": "\\.(html|js)$",
"maxsize": 16777216
},
"cache": {
"enable": true,
"expires": "30s",
"control": "public",
"rules": [{
"regexp": "\\.*index.html$",
"nocache": true
},{
"filename": "service-worker.js",
"nocache": true
},{
"regexp": "\\.(js|css|png|jpg|jpeg|svg|ico|woff|woff2|ttf|eot|otf)$",
"expires": "87600h",
"control": "public, max-age=31536000, immutable"
}]
},
"headers": {
"X-Content-Type-Options": "nosniff",
"X-XSS-Protection": "1; mode=block",
"Strict-Transport-Security": "max-age=31536000; preload",
"X-Frame-Options": "DENY",
"Referrer-Policy": "origin-when-cross-origin"
}
}