From 6ee928b0c7e4a542defd0897714c25aff9e9238b Mon Sep 17 00:00:00 2001 From: wjqserver <114663932+WJQSERVER@users.noreply.github.com> Date: Wed, 12 Mar 2025 23:36:50 +0800 Subject: [PATCH] update readme.md --- README.md | 6 ++++-- config/config.toml | 2 +- deploy/config.toml | 10 +++++----- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 90cec3d..0e4c6bb 100644 --- a/README.md +++ b/README.md @@ -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" # 静态页面文件路径 diff --git a/config/config.toml b/config/config.toml index a176144..7b07a17 100644 --- a/config/config.toml +++ b/config/config.toml @@ -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" diff --git a/deploy/config.toml b/deploy/config.toml index e72ad15..e61fdd0 100644 --- a/deploy/config.toml +++ b/deploy/config.toml @@ -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"