-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwikiproxy.toml
More file actions
30 lines (26 loc) · 852 Bytes
/
wikiproxy.toml
File metadata and controls
30 lines (26 loc) · 852 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
# Logger level: debug, info, warn, error
log_level = "debug"
# Listen address (host:port)
listen = "127.0.0.1:2012"
# The proxy used for accessing Wikipedia
proxy = "socks5h://127.0.0.1:1080"
# The domains used for proxying Wikipedia
[domains]
# Domain to proxy the English site: en.wikipedia.org
english = "en.wikiproxy.org"
# Domain to proxy the Chinese site: zh.wikipedia.org
chinese = "zh.wikiproxy.org"
# Simple authenticator to protect from crawling/abusing
[authenticator]
# Whether enable this?
enabled = true
# Secret to sign the cookie.
# e.g., openssl rand -base64 33
# If unspecified, a randomly generated one is used.
secret = ""
# Number of retries to pass the authentication.
retries = 6
# Time (seconds) to wait for a client to finish authenticating.
wait_time = 30
# Cache time (seconds) of a successful authentication.
ttl = 3600