From 2a15234fd378bc063e7003320aeb1f963f55ff9c Mon Sep 17 00:00:00 2001 From: Vadim Aleksandrov Date: Fri, 16 Feb 2024 15:44:24 +0300 Subject: [PATCH] chore(docker): add SENTRY_* env to config --- docker/rootfs/opt/transmission-telegram-bot/config.yml.j2 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docker/rootfs/opt/transmission-telegram-bot/config.yml.j2 b/docker/rootfs/opt/transmission-telegram-bot/config.yml.j2 index c006603..ebb0d2a 100644 --- a/docker/rootfs/opt/transmission-telegram-bot/config.yml.j2 +++ b/docker/rootfs/opt/transmission-telegram-bot/config.yml.j2 @@ -32,3 +32,11 @@ db: schedule: check_period: {{ DOWNLOAD_STATUS_CHECK_PERIOD }} max_instances: {{ DOWNLOAD_STATUS_CHECK_MAX_INSTANCES }} + +{% if SENTRY_DSN is defined %} +sentry: + dsn: {{ SENTRY_DSN }} + {% if SENTRY_ENVIRONMENT is defined %} + environment: {{ SENTRY_ENVIRONMENT }} + {% endif %} +{% endif %} \ No newline at end of file