🐛 Fix couldn't get ip behind reverse proxy
All checks were successful
release-nightly / build-docker (push) Successful in 2m34s
All checks were successful
release-nightly / build-docker (push) Successful in 2m34s
This commit is contained in:
parent
2daa85daf3
commit
7a0b6f4c7d
@ -24,6 +24,7 @@ func NewServer() {
|
||||
EnableIPValidation: true,
|
||||
ServerHeader: "passport",
|
||||
AppName: "passport",
|
||||
ProxyHeader: fiber.HeaderXForwardedFor,
|
||||
JSONEncoder: jsoniter.ConfigCompatibleWithStandardLibrary.Marshal,
|
||||
JSONDecoder: jsoniter.ConfigCompatibleWithStandardLibrary.Unmarshal,
|
||||
EnablePrintRoutes: viper.GetBool("debug"),
|
||||
|
Loading…
Reference in New Issue
Block a user