From d60b59002e80dfe3c293dd364c626fcf8782fb01 Mon Sep 17 00:00:00 2001 From: Klaas van Schelven Date: Tue, 8 Oct 2024 22:26:22 +0200 Subject: [PATCH] Add VALIDATE_ON_DIGEST and KEEP_ENVELOPES as docker env settings --- bugsink/conf_templates/docker.py.template | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bugsink/conf_templates/docker.py.template b/bugsink/conf_templates/docker.py.template index bddfdb5..f7fa266 100644 --- a/bugsink/conf_templates/docker.py.template +++ b/bugsink/conf_templates/docker.py.template @@ -123,6 +123,10 @@ BUGSINK = { # 50 requests/s (ingestion) on low-grade hardware that I measured, and with 50% of the default value for retention. "MAX_EVENTS_PER_PROJECT_PER_5_MINUTES": int(os.getenv("MAX_EVENTS_PER_PROJECT_PER_5_MINUTES", 1_000)), "MAX_EVENTS_PER_PROJECT_PER_HOUR": int(os.getenv("MAX_EVENTS_PER_PROJECT_PER_HOUR", 5_000)), + + # Settings that help with debugging and development ("why isn't Bugsink doing what I expect?") + "VALIDATE_ON_DIGEST": os.getenv("VALIDATE_ON_DIGEST", "none").lower(), # other legal values are "warn" and "strict" + "KEEP_ENVELOPES": int(os.getenv("KEEP_ENVELOPES", 0)), # keep this many in the database; 0 means "don't keep" }