From fd626a9c663edc8a7b45990e3228c160baa29e79 Mon Sep 17 00:00:00 2001 From: SysAdmin Agent Date: Mon, 23 Mar 2026 21:02:01 +0000 Subject: [PATCH] Fix GrampsWeb: remove broken STATIC_PATH/STATIC_URL config (STI-90) GRAMPSWEB_STATIC_PATH was set to /ahnenforschung/static (a URL path) instead of a filesystem path, causing GrampsWeb to return 404 on all routes. Removed STATIC_PATH and STATIC_URL (defaults work correctly) and simplified BASE_URL to /. Co-Authored-By: Claude Opus 4.6 --- compose.yml | 4 +--- deploy-production/docker-compose.prod.yml | 6 ++---- env-template.txt | 4 +--- 3 files changed, 4 insertions(+), 10 deletions(-) diff --git a/compose.yml b/compose.yml index 4d74933..c796584 100644 --- a/compose.yml +++ b/compose.yml @@ -197,9 +197,7 @@ services: - GRAMPSWEB_ADMIN_EMAIL=${GRAMPSWEB_ADMIN_EMAIL} - GRAMPSWEB_ADMIN_PASSWORD=${GRAMPSWEB_ADMIN_PASSWORD} - GRAMPSWEB_TREE=${GRAMPSWEB_TREE:-Stiftung} - - GRAMPSWEB_BASE_URL=${GRAMPSWEB_BASE_URL:-/ahnenforschung} - - GRAMPSWEB_STATIC_PATH=${GRAMPSWEB_STATIC_PATH:-/ahnenforschung/static} - - GRAMPSWEB_STATIC_URL=${GRAMPSWEB_STATIC_URL:-/ahnenforschung/static/} + - GRAMPSWEB_BASE_URL=${GRAMPSWEB_BASE_URL:-/} - GRAMPSWEB_CELERY_CONFIG__broker_url=redis://redis:6379/0 - GRAMPSWEB_CELERY_CONFIG__result_backend=redis://redis:6379/0 - GRAMPSWEB_RATELIMIT_STORAGE_URI=redis://redis:6379/1 diff --git a/deploy-production/docker-compose.prod.yml b/deploy-production/docker-compose.prod.yml index c6c936d..2244991 100644 --- a/deploy-production/docker-compose.prod.yml +++ b/deploy-production/docker-compose.prod.yml @@ -122,10 +122,8 @@ services: - GRAMPSWEB_SECRET_KEY=${GRAMPSWEB_SECRET_KEY} - GRAMPSWEB_ADMIN_EMAIL=${GRAMPSWEB_ADMIN_EMAIL} - GRAMPSWEB_ADMIN_PASSWORD=${GRAMPSWEB_ADMIN_PASSWORD} - - GRAMPSWEB_TREE=${GRAMPSWEB_TREE} - - GRAMPSWEB_BASE_URL=${GRAMPSWEB_BASE_URL} - - GRAMPSWEB_STATIC_PATH=${GRAMPSWEB_STATIC_PATH} - - GRAMPSWEB_STATIC_URL=${GRAMPSWEB_STATIC_URL} + - GRAMPSWEB_TREE=${GRAMPSWEB_TREE:-Stiftung} + - GRAMPSWEB_BASE_URL=${GRAMPSWEB_BASE_URL:-/} - GRAMPSWEB_CELERY_CONFIG__broker_url=redis://redis:6379/0 - GRAMPSWEB_CELERY_CONFIG__result_backend=redis://redis:6379/0 - GRAMPSWEB_RATELIMIT_STORAGE_URI=redis://redis:6379/1 diff --git a/env-template.txt b/env-template.txt index fe889ed..8f516a8 100644 --- a/env-template.txt +++ b/env-template.txt @@ -64,8 +64,6 @@ 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 -GRAMPSWEB_STATIC_PATH=/ahnenforschung/static -GRAMPSWEB_STATIC_URL=/ahnenforschung/static/ +GRAMPSWEB_BASE_URL=/ \ No newline at end of file