This commit is contained in:
WJQSERVER 2024-11-15 19:04:35 +08:00
parent 85896ffbfe
commit c55ae4a5b7
11 changed files with 102 additions and 25 deletions

View file

@ -19,6 +19,7 @@ type ServerConfig struct {
Port int `toml:"port"`
Host string `toml:"host"`
SizeLimit int `toml:"sizeLimit"`
EnableH2C bool `toml:"enableH2C"`
}
type PagesConfig struct {
@ -36,8 +37,9 @@ type CORSConfig struct {
}
type AuthConfig struct {
Enabled bool `toml:"enabled"`
AuthToken string `toml:"authToken"`
Enabled bool `toml:"enabled"`
AuthMethod string `toml:"authMethod"`
AuthToken string `toml:"authToken"`
}
type BlacklistConfig struct {

View file

@ -2,6 +2,7 @@
host = "127.0.0.1"
port = 8080
sizeLimit = 125 # MB
enableH2C = true
[pages]
enabled = false
@ -15,6 +16,7 @@ maxLogSize = 5 # MB
enabled = true
[auth]
authMethod = "parameters" # "header" or "parameters"
authToken = "token"
enabled = false