From cfa66f592a0649b85cfb698aeee5574997c0e816 Mon Sep 17 00:00:00 2001 From: Slfhstd Date: Wed, 4 Mar 2026 22:05:49 +0000 Subject: [PATCH] allowing BAN_template to be populated from docker env --- docker-compose.yml | 1 + populate_config.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 8892ebe..60b39d4 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -15,3 +15,4 @@ services: MAX_DAYS: "${MAX_DAYS}" # strings are converted to ints when the MAX_POSTS: "${MAX_POSTS}" # corresponding config value is an int SLEEP_MINUTES: "${SLEEP_MINUTES}" + BAN_TEMPLATE: "${BAN_TEMPLATE}" diff --git a/populate_config.py b/populate_config.py index d2f964c..0c46941 100644 --- a/populate_config.py +++ b/populate_config.py @@ -11,6 +11,7 @@ CONFIG_KEYS = [ "max_days", "max_posts", "sleep_minutes", + "ban_template", ] DEFAULTS = { @@ -23,6 +24,7 @@ DEFAULTS = { "max_days": 180, "max_posts": 180, "sleep_minutes": 5, + "ban_template": "", } # Try both plain and DP_ prefix for env vars