fix(conf): ProxyHeader should be optional (#2760)
This commit is contained in:
@@ -28,7 +28,7 @@ type system struct {
|
|||||||
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 {
|
||||||
|
|||||||
@@ -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"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user