From 8f61fec65f069fecfa4ea117947eb909f8ed2c0e Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Fri, 20 Dec 2024 10:24:36 +0100 Subject: [PATCH] bundles/infobeamer-cms: ensure we have and use redis --- bundles/infobeamer-cms/metadata.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bundles/infobeamer-cms/metadata.py b/bundles/infobeamer-cms/metadata.py index 9d602e0..f340e01 100644 --- a/bundles/infobeamer-cms/metadata.py +++ b/bundles/infobeamer-cms/metadata.py @@ -1,10 +1,13 @@ from datetime import datetime, timedelta +assert node.has_bundle('redis') + defaults = { 'infobeamer-cms': { 'config': { 'MAX_UPLOADS': 5, 'PREFERRED_URL_SCHEME': 'https', + 'REDIS_HOST': '127.0.0.1', 'SESSION_COOKIE_NAME': '__Host-sess', 'STATIC_PATH': '/opt/infobeamer-cms/static', 'URL_KEY': repo.vault.password_for(f'{node.name} infobeamer-cms url key'),