This commit is contained in:
WJQSERVER 2024-12-31 19:41:00 +08:00
parent be6314bd53
commit 546a8ca981
10 changed files with 37 additions and 19 deletions

View file

@ -37,9 +37,10 @@ type CORSConfig struct {
}
type AuthConfig struct {
Enabled bool `toml:"enabled"`
AuthMethod string `toml:"authMethod"`
AuthToken string `toml:"authToken"`
Enabled bool `toml:"enabled"`
AuthMethod string `toml:"authMethod"`
AuthToken string `toml:"authToken"`
PassThrough bool `toml:"passThrough"`
}
type BlacklistConfig struct {

View file

@ -19,6 +19,7 @@ enabled = true
authMethod = "parameters" # "header" or "parameters"
authToken = "token"
enabled = false
passThrough = false
[blacklist]
blacklistFile = "/data/ghproxy/config/blacklist.json"