diff --git a/pkg/hypertext/server.go b/pkg/hypertext/server.go index 27682f9..cf9c466 100644 --- a/pkg/hypertext/server.go +++ b/pkg/hypertext/server.go @@ -29,6 +29,7 @@ func InitServer() *fiber.App { ErrorHandler: status.StatusPageHandler, JSONDecoder: jsoniter.ConfigCompatibleWithStandardLibrary.Unmarshal, JSONEncoder: jsoniter.ConfigCompatibleWithStandardLibrary.Marshal, + ProxyHeader: fiber.HeaderXForwardedFor, Prefork: viper.GetBool("performance.prefork"), BodyLimit: viper.GetInt("hypertext.limitation.max_body_size"), }) diff --git a/pkg/sideload/server.go b/pkg/sideload/server.go index 43c04a7..38adebb 100644 --- a/pkg/sideload/server.go +++ b/pkg/sideload/server.go @@ -23,6 +23,7 @@ func InitSideload() *fiber.App { EnableIPValidation: true, JSONDecoder: jsoniter.ConfigCompatibleWithStandardLibrary.Unmarshal, JSONEncoder: jsoniter.ConfigCompatibleWithStandardLibrary.Marshal, + ProxyHeader: fiber.HeaderXForwardedFor, EnablePrintRoutes: viper.GetBool("debug.print_routes"), TrustedProxies: viper.GetStringSlice("security.sideload_trusted_proxies"), BodyLimit: viper.GetInt("hypertext.limitation.max_body_size"),