mirror of
https://github.com/henrygd/beszel.git
synced 2026-09-18 14:04:20 +00: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()
|
||||
// batch requests (for alerts)
|
||||
settings.Batch.Enabled = true
|
||||
settings.Batch.MaxRequests = 100
|
||||
settings.Batch.MaxBodySize = 1 << 20 // 1 MiB
|
||||
// set URL if APP_URL env is set
|
||||
if appURL, isSet := utils.GetEnv("APP_URL"); isSet {
|
||||
h.appURL = appURL
|
||||
|
||||
Reference in New Issue
Block a user