update readme.md

This commit is contained in:
wjqserver 2025-03-12 23:36:50 +08:00
parent 979f59545b
commit 6ee928b0c7
3 changed files with 10 additions and 8 deletions

View file

@ -95,7 +95,6 @@ port = 8080 # 监听端口
sizeLimit = 125 # 125MB
H2C = true # 是否开启H2C传输
cors = "*" # "*"/"" -> "*" ; "nil" -> "" ; 除以上特殊情况, 会将值直接传入
enableH2C = "on" # 是否开启H2C传输(latest和dev版本请开启) on/off (2.4.0弃用)
[httpc]
mode = "auto" # "auto" or "advanced" HTTP客户端模式 自动/高级模式
@ -103,9 +102,12 @@ maxIdleConns = 100 # only for advanced mode 仅用于高级模式
maxIdleConnsPerHost = 60 # only for advanced mode 仅用于高级模式
maxConnsPerHost = 0 # only for advanced mode 仅用于高级模式
[gitclone]
mode = "bypass" # bypass / cache 运行模式, cache模式依赖smart-git
smartGitAddr = "http://127.0.0.1:8080" # smart-git组件地址
[pages]
mode = "internal" # "internal" or "external" 内部/外部 前端 默认内部
enabled = false # 是否开启外置静态页面(Docker版本请关闭此项) (2.4.0弃用)
theme = "bootstrap" # "bootstrap" or "nebula" 内置主题
staticPath = "/data/www" # 静态页面文件路径

View file

@ -14,7 +14,7 @@ maxConnsPerHost = 0 # only for advanced mode
[gitclone]
mode = "bypass" # bypass / cache
smartGitAddr = ":8080"
smartGitAddr = "http://127.0.0.1:8080"
[pages]
mode = "internal" # "internal" or "external"

View file

@ -3,7 +3,7 @@ host = "127.0.0.1"
port = 8080
sizeLimit = 125 # MB
H2C = true
enableH2C = "on"
cors = "*" # "*"/"" -> "*" ; "nil" -> "" ;
debug = false
[httpc]
@ -12,9 +12,12 @@ maxIdleConns = 100 # only for advanced mode
maxIdleConnsPerHost = 60 # only for advanced mode
maxConnsPerHost = 0 # only for advanced mode
[gitclone]
mode = "bypass" # bypass / cache
smartGitAddr = "http://127.0.0.1:8080"
[pages]
mode = "internal" # "internal" or "external"
enabled = false
theme = "bootstrap" # "bootstrap" or "nebula"
staticDir = "/usr/local/ghproxy/pages"
@ -23,9 +26,6 @@ logFilePath = "/usr/local/ghproxy/log/ghproxy.log"
maxLogSize = 5 # MB
level = "info" # dump, debug, info, warn, error, none
[cors]
enabled = true
[auth]
authMethod = "parameters" # "header" or "parameters"
authToken = "token"