-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample_config.json
72 lines (70 loc) · 1.99 KB
/
example_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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
{
"_version": 1,
"debug": false,
"hostname": "0.0.0.0",
"port": 80,
"ssl": false,
"cert": "cert.pem",
"key": "privkey.pem",
"logLevels": ["INFO", "ERROR", "WARN"],
"includeTimestamp": true,
"maxConnections": 100,
"pagesLocation": "pages",
"pageLocations": {
"authentication": "authentication.html",
"unknownHost": "unknown-host.html",
"bypassTest": "bypass-test.html",
"connectionLimit": "connection-limit-reached.html"
},
"servicesLocation": "example_services",
"realIPHeaders": [
"X-Real-IP",
"CF-Connecting-IP"
],
"defaultServiceOptions": {
"disallowRobots": true,
"usernameCookie": "YAP-Username",
"passwordCookie": "YAP-Password",
"cookieAge": 604800,
"authenticationType": "cookies",
"users": [],
"password": "password",
"modifiedRequestHeaders": [
["Host", "{{service.originHost}}:{{service.originPort}}"]
],
"modifiedResponseHeaders": [
["X-YAP-Origin-Host", "{{service.originHost}}:{{service.originPort}}"]
],
"authenticationBypassedAddresses": [
"::1",
"127.0.0.1",
"10.0.0.0/8",
"172.16.0.0/12",
"192.168.0.0/16"
],
"whitelistedAddresses": [
"::1",
"127.0.0.1",
"10.0.0.0/8",
"172.16.0.0/12",
"192.168.0.0/16",
"173.245.48.0/20",
"103.21.244.0/22",
"103.22.200.0/22",
"103.31.4.0/22",
"141.101.64.0/18",
"108.162.192.0/18",
"190.93.240.0/20",
"188.114.96.0/20",
"197.234.240.0/22",
"198.41.128.0/17",
"162.158.0.0/15",
"104.16.0.0/13",
"104.24.0.0/14",
"172.64.0.0/13",
"131.0.72.0/22"
],
"blacklistedAddresses": [
]
}
}