mirror of
https://github.com/WJQSERVER-STUDIO/ghproxy.git
synced 2026-02-02 15:51:11 +08:00
80 lines
No EOL
1.6 KiB
TOML
80 lines
No EOL
1.6 KiB
TOML
[server]
|
|
host = "0.0.0.0"
|
|
port = 8080
|
|
sizeLimit = 125 # MB
|
|
memLimit = 0 # MB
|
|
cors = "*" # "*"/"" -> "*" ; "nil" -> "" ;
|
|
debug = false
|
|
|
|
[httpc]
|
|
mode = "auto" # "auto" or "advanced"
|
|
maxIdleConns = 100 # only for advanced mode
|
|
maxIdleConnsPerHost = 60 # only for advanced mode
|
|
maxConnsPerHost = 0 # only for advanced mode
|
|
useCustomRawHeaders = false
|
|
|
|
[gitclone]
|
|
mode = "bypass" # bypass / cache
|
|
smartGitAddr = "http://127.0.0.1:8080"
|
|
ForceH2C = false
|
|
|
|
[shell]
|
|
editor = false
|
|
rewriteAPI = false
|
|
|
|
[pages]
|
|
mode = "internal" # "internal" or "external"
|
|
theme = "bootstrap" # "bootstrap" or "nebula"
|
|
staticDir = "/data/www"
|
|
|
|
[log]
|
|
logFilePath = "/data/ghproxy/log/ghproxy.log"
|
|
maxLogSize = 5 # MB
|
|
level = "info" # debug, info, warn, error, none
|
|
|
|
[auth]
|
|
method = "parameters" # "header" or "parameters"
|
|
token = "token"
|
|
key = ""
|
|
enabled = false
|
|
passThrough = false
|
|
ForceAllowApi = false
|
|
ForceAllowApiPassList = false
|
|
|
|
[blacklist]
|
|
blacklistFile = "/data/ghproxy/config/blacklist.json"
|
|
enabled = false
|
|
|
|
[whitelist]
|
|
enabled = false
|
|
whitelistFile = "/data/ghproxy/config/whitelist.json"
|
|
|
|
[ipFilter]
|
|
enabled = false
|
|
enableAllowList = false
|
|
enableBlockList = false
|
|
ipFilterFile = "/data/ghproxy/config/ipfilter.json"
|
|
|
|
[rateLimit]
|
|
enabled = false
|
|
ratePerMinute = 180
|
|
burst = 5
|
|
|
|
[rateLimit.bandwidthLimit]
|
|
enabled = false
|
|
totalLimit = "100mbps"
|
|
totalBurst = "100mbps"
|
|
singleLimit = "10mbps"
|
|
singleBurst = "10mbps"
|
|
|
|
[outbound]
|
|
enabled = false
|
|
url = "socks5://127.0.0.1:1080" # "http://127.0.0.1:7890"
|
|
|
|
[docker]
|
|
enabled = false
|
|
target = "dockerhub" # ghcr/dockerhub/ custom
|
|
auth = false
|
|
[docker.credentials]
|
|
user1 = "testpass"
|
|
test = "test123" |