fix(conf): ProxyHeader should be optional (#2760)

master
Aaron Liu 2025-08-12 09:53:15 +08:00
parent b0057fe92f
commit 5f18d277c8
2 changed files with 3 additions and 3 deletions

View File

@ -27,8 +27,8 @@ type system struct {
Debug bool Debug bool
SessionSecret string SessionSecret string
HashIDSalt string HashIDSalt string
GracePeriod int `validate:"gte=0"` GracePeriod int `validate:"gte=0"`
ProxyHeader string `validate:"required_with=Listen"` ProxyHeader string
} }
type ssl struct { type ssl struct {

View File

@ -46,7 +46,7 @@ type System struct {
SessionSecret string SessionSecret string
HashIDSalt string // deprecated HashIDSalt string // deprecated
GracePeriod int `validate:"gte=0"` GracePeriod int `validate:"gte=0"`
ProxyHeader string `validate:"required_with=Listen"` ProxyHeader string
LogLevel string `validate:"oneof=debug info warning error"` LogLevel string `validate:"oneof=debug info warning error"`
} }