Added additional headers to config

This commit is contained in:
2025-10-20 16:15:53 +02:00
parent c5c6058c66
commit 4ebc95b9d8
2 changed files with 19 additions and 24 deletions

View File

@@ -19,11 +19,12 @@ type Config struct {
} `yaml:"ssl"`
} `yaml:"server"`
Hosts []struct {
Port int `yaml:"port"`
Remotes []string `yaml:"remotes"`
Domains []string `yaml:"domains"`
Secure bool `yaml:"secure"`
Rewrite map[string]string `yaml:"rewrite"`
Port int `yaml:"port"`
Remotes []string `yaml:"remotes"`
Domains []string `yaml:"domains"`
Secure bool `yaml:"secure"`
Rewrite map[string]string `yaml:"rewrite"`
AdditionalHeaders map[string]string `yaml:"extraHeaders"`
} `yaml:"hosts"`
RateLimit struct {
Enabled bool `yaml:"enabled"`