🐛 Body limit fixes

This commit is contained in:
LittleSheep 2023-12-10 18:15:22 +08:00
parent 1fb8bba5c4
commit ccc98f6633

View File

@ -19,6 +19,7 @@ func InitAdministration() *fiber.App {
EnableIPValidation: true, EnableIPValidation: true,
EnablePrintRoutes: viper.GetBool("debug.print_routes"), EnablePrintRoutes: viper.GetBool("debug.print_routes"),
TrustedProxies: viper.GetStringSlice("security.administration_trusted_proxies"), TrustedProxies: viper.GetStringSlice("security.administration_trusted_proxies"),
BodyLimit: viper.GetInt("hypertext.limitation.max_body_size"),
}) })
if viper.GetBool("performance.request_logging") { if viper.GetBool("performance.request_logging") {
@ -42,7 +43,7 @@ func InitAdministration() *fiber.App {
webhooks := app.Group("/webhooks").Name("WebHooks") webhooks := app.Group("/webhooks").Name("WebHooks")
{ {
webhooks.Put("/publish/:site/:upstream", doPublish) webhooks.Put("/publish/:site/:slug", doPublish)
} }
return app return app