This commit is contained in:
WJQSERVER 2024-10-20 17:39:27 +08:00
parent c50f23c399
commit e5d941414e
11 changed files with 51 additions and 9 deletions

View file

@ -6,6 +6,7 @@ import (
type Config struct {
Server ServerConfig
Page PageConfig
Log LogConfig
CORS CORSConfig
Auth AuthConfig
@ -19,6 +20,11 @@ type ServerConfig struct {
SizeLimit int `toml:"sizeLimit"`
}
type PageConfig struct {
Enabled bool `toml:"enabled"`
StaticDir string `toml:"staticDir"`
}
type LogConfig struct {
LogFilePath string `toml:"logFilePath"`
MaxLogSize int `toml:"maxLogSize"`

View file

@ -3,6 +3,10 @@ host = "127.0.0.1"
port = 8080
sizeLimit = 131072000 # 125MB
[page]
enabled = true
staticDir = "/data/www"
[log]
logFilePath = "/data/ghproxy/log/ghproxy.log"
maxLogSize = 5 # MB