-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathconfig.toml.sample
More file actions
51 lines (41 loc) · 941 Bytes
/
config.toml.sample
File metadata and controls
51 lines (41 loc) · 941 Bytes
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
listener = "0.0.0.0:8080"
#tlslistener = "0.0.0.0:8443"
#data = "/data"
#elasticsearch_url = "http://127.0.0.1:9200"
#socks = "socks4://127.0.0.1:9050"
[[host]]
host = "wikipedia.lvh.me"
target = "https://en.wikipedia.org"
[[host.action]]
path = "^.*"
action = "inject"
method = ["GET"]
scripts = ["injects/webrtc.js", "injects/location.js", "injects/snap.js", "injects/clipboard.js"]
[[host.action]]
path = "^/dump"
action = "serve"
content_type = "text/plain"
body = ""
[[host.action]]
path = "^/.*"
action = "replace"
regex = "Wikipedia"
replace = "Blikipedia"
[[host.action]]
path = "/w/index.php.*?Special:UserLogin"
action = "file"
method = ["GET"]
file = "static/login.html"
[[host.action]]
path = "^/login.html"
action = "file"
method = ["POST"]
file = "static/login-failed.html"
[[host.action]]
path = "^/shorturl"
statuscode = 302
action = "redirect"
location = "/login.html"
[[logging]]
output = "stdout"
level = "info"