This commit is contained in:
WJQSERVER 2024-10-03 10:39:53 +08:00
parent 51d84f0fc3
commit e4713d0f50
6 changed files with 120 additions and 17 deletions

View file

@ -11,6 +11,7 @@ type Config struct {
Host string `yaml:"host"`
SizeLimit int `yaml:"sizelimit"`
LogFilePath string `yaml:"logfilepath"`
MaxLogSize int `yaml:"maxlogsize"`
CORSOrigin bool `yaml:"CorsAllowOrigins"`
Auth bool `yaml:"auth"`
AuthToken string `yaml:"authtoken"`

View file

@ -2,6 +2,7 @@ port: 8080
host: "127.0.0.1"
sizelimit: 131072000 # 125MB
logfilepath: "/data/ghproxy/log/ghproxy.log"
maxlogsize: 25 #MB
CorsAllowOrigins: true
auth: false
authtoken: "test"