mirror of
https://github.com/henrygd/beszel.git
synced 2026-09-21 08:57:48 +02:00
hub: raise max batch requests and lower max batch body size
This commit is contained in:
@@ -122,6 +122,8 @@ func (h *Hub) initialize(app core.App) error {
|
|||||||
settings := app.Settings()
|
settings := app.Settings()
|
||||||
// batch requests (for alerts)
|
// batch requests (for alerts)
|
||||||
settings.Batch.Enabled = true
|
settings.Batch.Enabled = true
|
||||||
|
settings.Batch.MaxRequests = 100
|
||||||
|
settings.Batch.MaxBodySize = 1 << 20 // 1 MiB
|
||||||
// set URL if APP_URL env is set
|
// set URL if APP_URL env is set
|
||||||
if appURL, isSet := utils.GetEnv("APP_URL"); isSet {
|
if appURL, isSet := utils.GetEnv("APP_URL"); isSet {
|
||||||
h.appURL = appURL
|
h.appURL = appURL
|
||||||
|
|||||||
Reference in New Issue
Block a user