🐛 Fix couldn't get ip behind reverse proxy
All checks were successful
release-nightly / build-docker (push) Successful in 2m34s

This commit is contained in:
LittleSheep 2024-01-31 11:34:34 +08:00
parent 2daa85daf3
commit 7a0b6f4c7d

View File

@ -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"),