refactor(config): add SupportProxyProtocol to Entrypoint config

This commit is contained in:
yusing
2025-09-18 17:36:19 +08:00
parent 83a69322fa
commit 09b14a47e9
2 changed files with 10 additions and 8 deletions

View File

@@ -37,8 +37,9 @@ type (
MaxMind *maxmind.Config `json:"maxmind" yaml:"maxmind,omitempty"`
}
Entrypoint struct {
Middlewares []map[string]any `json:"middlewares"`
AccessLog *accesslog.RequestLoggerConfig `json:"access_log" validate:"omitempty"`
SupportProxyProtocol bool `json:"support_proxy_protocol"`
Middlewares []map[string]any `json:"middlewares"`
AccessLog *accesslog.RequestLoggerConfig `json:"access_log" validate:"omitempty"`
}
HomepageConfig struct {
UseDefaultCategories bool `json:"use_default_categories"`