-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.json
33 lines (33 loc) · 826 Bytes
/
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
{
"host":"::",
"port":"80",
"basePath":"/home/user/static",
"errorMessage":{
"400":"WTF"
},
"errorPage":{
"404":"404.html"
},
"plugins":["./examplePlugin.js"],
"actions":[
{"type":"rangeBlock","path":"/nothing"},
{"type":"pathRewrite","from":"/here.html","to":"/there.html"},
{"type":"rangePathRewrite","from":"/spa","to":"/spa/index.html"},
{"type":"serveFile","path":"/path.html","file":"/home/user/path.html"},
{"type":"rangeServeFile","path":"/data","base":"/home/user/data"},
{"type":"query","path":"/example"}
],
"https":{
"open":false,
"hsts":true,
"port":"443",
"key":"/etc/letsencrypt/live/site.com/privkey.pem",
"cert":"/etc/letsencrypt/live/site.com/fullchain.pem",
"renew":{
"open":false,
"period":1728000000,
"command":"certbot",
"commandArgs":["renew"]
}
}
}