diff options
-rw-r--r-- | bot/constants.py | 8 | ||||
-rw-r--r-- | config-default.yml | 7 |
2 files changed, 15 insertions, 0 deletions
diff --git a/bot/constants.py b/bot/constants.py index 7b2a38079..e2a35e892 100644 --- a/bot/constants.py +++ b/bot/constants.py @@ -558,6 +558,14 @@ class Reddit(metaclass=YAMLGetter): secret: Optional[str] subreddits: list +class Metabase(metaclass=YAMLGetter): + section = "metabase" + + username: Optional[str] + password: Optional[str] + url: str + max_session_age: int + class AntiSpam(metaclass=YAMLGetter): section = 'anti_spam' diff --git a/config-default.yml b/config-default.yml index 46475f845..a2ca8a447 100644 --- a/config-default.yml +++ b/config-default.yml @@ -429,6 +429,13 @@ reddit: subreddits: - 'r/Python' +metabase: + username: !ENV "METABASE_USERNAME" + password: !ENV "METABASE_PASSWORD" + url: "http://metabase.default.svc.cluster.local/api" + # 14 days, see https://www.metabase.com/docs/latest/operations-guide/environment-variables.html#max_session_age + max_session_age: 20160 + big_brother: header_message_limit: 15 |