mirror of
https://github.com/WJQSERVER-STUDIO/ghproxy.git
synced 2026-02-03 16:21:11 +08:00
* fix * Update config.toml * fix * Update auth.go * Update go.mod * Update blacklist.go * Update whitelist.go
35 lines
632 B
TOML
35 lines
632 B
TOML
[server]
|
|
host = "0.0.0.0"
|
|
port = 80 #修改此配置会导致容器异常
|
|
sizeLimit = 125 # MB
|
|
enableH2C = "off" # on / off
|
|
|
|
[pages]
|
|
enabled = true
|
|
staticDir = "/data/www"
|
|
|
|
[log]
|
|
logFilePath = "/data/ghproxy/log/ghproxy.log"
|
|
maxLogSize = 5 # MB
|
|
|
|
[cors]
|
|
enabled = true
|
|
|
|
[auth]
|
|
authMethod = "parameters" # "header" or "parameters"
|
|
authToken = "token"
|
|
enabled = false
|
|
|
|
[blacklist]
|
|
blacklistFile = "/data/ghproxy/config/blacklist.json"
|
|
enabled = false
|
|
|
|
[whitelist]
|
|
enabled = false
|
|
whitelistFile = "/data/ghproxy/config/whitelist.json"
|
|
|
|
[rateLimit]
|
|
enabled = false
|
|
rateMethod = "total" # "ip" or "total"
|
|
ratePerMinute = 180
|
|
burst = 5
|