This commit is contained in:
WJQSERVER 2024-11-28 08:58:27 +08:00
parent f6f1ff7362
commit d297f785db
3 changed files with 13 additions and 3 deletions

View file

@ -19,7 +19,7 @@ type ServerConfig struct {
Port int `toml:"port"`
Host string `toml:"host"`
SizeLimit int `toml:"sizeLimit"`
EnableH2C bool `toml:"enableH2C"`
EnableH2C string `toml:"enableH2C"`
}
type PagesConfig struct {

View file

@ -2,7 +2,7 @@
host = "127.0.0.1"
port = 8080
sizeLimit = 125 # MB
enableH2C = true
enableH2C = "on" # "on" or "off"
[pages]
enabled = false