🐛 Body limit fixes
This commit is contained in:
parent
1fb8bba5c4
commit
ccc98f6633
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user