From f893172a2b29e6819a5152e5689c472d0268eaaf Mon Sep 17 00:00:00 2001 From: SysAdmin Agent Date: Sat, 21 Mar 2026 23:40:55 +0000 Subject: [PATCH] GrampsWeb Phase 1: Sidebar-Link, Settings-Fix & Env-Template (STI-90) - Fix GRAMPS_URL default port from 80 to 5000 to match dev compose - Add "Ahnenforschung" sidebar link in navigation (links to /ahnenforschung/) - Update env-template with all GRAMPSWEB_* variables for production setup Co-Authored-By: Claude Opus 4.6 --- app/core/settings.py | 2 +- app/templates/base.html | 4 ++++ env-template.txt | 13 +++++++++++-- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/app/core/settings.py b/app/core/settings.py index a45dfaa..289457e 100644 --- a/app/core/settings.py +++ b/app/core/settings.py @@ -166,7 +166,7 @@ LOGIN_REDIRECT_URL = "/" LOGOUT_REDIRECT_URL = "/login/" # Gramps integration -GRAMPS_URL = os.environ.get("GRAMPS_URL", "http://grampsweb:80") +GRAMPS_URL = os.environ.get("GRAMPS_URL", "http://grampsweb:5000") GRAMPS_API_TOKEN = os.environ.get("GRAMPS_API_TOKEN", "") GRAMPS_STIFTER_IDS = os.environ.get("GRAMPS_STIFTER_IDS", "") # comma-separated GRAMPS_USERNAME = os.environ.get("GRAMPS_USERNAME", "") diff --git a/app/templates/base.html b/app/templates/base.html index d3e2fc5..668e50f 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -689,6 +689,10 @@ Geschichte + + + Ahnenforschung + {% if perms.stiftung.access_administration %} diff --git a/env-template.txt b/env-template.txt index e2ae982..8b87388 100644 --- a/env-template.txt +++ b/env-template.txt @@ -53,8 +53,17 @@ IMAP_FOLDER=INBOX IMAP_USE_SSL=true # Integration von Grampsweb zur Ahnenforschung und Prüfung -GRAMPS_URL=http://192.168.178.167:30179 +# Django-App Verbindung zu GrampsWeb API (internes Docker-Netzwerk) +GRAMPS_URL=http://grampsweb:5000 GRAMPS_USERNAME=Stiftung -GRAMPS_PASSWORD=home4Gty94rj*de +GRAMPS_PASSWORD=your-gramps-password-here +GRAMPS_API_TOKEN= + +# GrampsWeb Container Konfiguration +GRAMPSWEB_SECRET_KEY=your-grampsweb-secret-key-here +GRAMPSWEB_ADMIN_EMAIL=admin@vhtv-stiftung.de +GRAMPSWEB_ADMIN_PASSWORD=your-grampsweb-admin-password-here +GRAMPSWEB_TREE=Stiftung +GRAMPSWEB_BASE_URL=/ahnenforschung \ No newline at end of file