Skip to content

Commit a5bc260

Browse files
committed
Set an explicit BodyLimit to reduce risk of running into status 413 for large external-dns payloads
1 parent d5ac58c commit a5bc260

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/api/api.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ func New(logger *zap.Logger, middlewareCollector metrics.HttpApiMetrics, provide
7373
DisableStartupMessage: true,
7474
JSONEncoder: json.Marshal,
7575
JSONDecoder: json.Unmarshal,
76+
BodyLimit: 12 * 1024 * 1024,
7677
})
7778

7879
registerAt(app, "/metrics")

0 commit comments

Comments
 (0)