mirror of
https://github.com/WJQSERVER-STUDIO/ghproxy.git
synced 2026-02-03 00:01:10 +08:00
32 lines
508 B
TOML
32 lines
508 B
TOML
[server]
|
|
host = "127.0.0.1"
|
|
port = 8080
|
|
sizeLimit = 125 # MB
|
|
|
|
[pages]
|
|
enabled = true
|
|
staticDir = "/usr/local/ghproxy/pages"
|
|
|
|
[log]
|
|
logFilePath = "/usr/local/ghproxy/log/ghproxy.log"
|
|
maxLogSize = 5 # MB
|
|
|
|
[cors]
|
|
enabled = true
|
|
|
|
[auth]
|
|
authToken = "token"
|
|
enabled = false
|
|
|
|
[blacklist]
|
|
blacklistFile = "/usr/local/ghproxy/config/blacklist.json"
|
|
enabled = false
|
|
|
|
[whitelist]
|
|
enabled = false
|
|
whitelistFile = "/usr/local/ghproxy/config/whitelist.json"
|
|
|
|
[rateLimit]
|
|
enabled = false
|
|
ratePerMinute = 180
|
|
burst = 5
|