fix: Configure Gramps Web static paths for subpath deployment

- Add GRAMPSWEB_STATIC_PATH and GRAMPSWEB_STATIC_URL environment variables
- Configure proper static file serving for /ahnenforschung subpath
- Fix CSS and JavaScript loading issues in reverse proxy setup
- Ensure Gramps Web initialization page loads correctly
This commit is contained in:
Stiftung Development
2025-10-15 21:49:21 +02:00
parent c1c6824364
commit a4c773a57d
2 changed files with 4 additions and 0 deletions

View File

@@ -93,6 +93,8 @@ services:
- GRAMPSWEB_ADMIN_PASSWORD=gramps_dev_password - GRAMPSWEB_ADMIN_PASSWORD=gramps_dev_password
- GRAMPSWEB_TREE=Stiftung - GRAMPSWEB_TREE=Stiftung
- GRAMPSWEB_BASE_URL=/ahnenforschung - GRAMPSWEB_BASE_URL=/ahnenforschung
- GRAMPSWEB_STATIC_PATH=/ahnenforschung/static
- GRAMPSWEB_STATIC_URL=/ahnenforschung/static/
- GRAMPSWEB_CELERY_CONFIG__broker_url=redis://redis:6379/0 - GRAMPSWEB_CELERY_CONFIG__broker_url=redis://redis:6379/0
- GRAMPSWEB_CELERY_CONFIG__result_backend=redis://redis:6379/0 - GRAMPSWEB_CELERY_CONFIG__result_backend=redis://redis:6379/0
- GRAMPSWEB_RATELIMIT_STORAGE_URI=redis://redis:6379/1 - GRAMPSWEB_RATELIMIT_STORAGE_URI=redis://redis:6379/1

View File

@@ -113,6 +113,8 @@ services:
- GRAMPSWEB_ADMIN_PASSWORD=${GRAMPSWEB_ADMIN_PASSWORD} - GRAMPSWEB_ADMIN_PASSWORD=${GRAMPSWEB_ADMIN_PASSWORD}
- GRAMPSWEB_TREE=${GRAMPSWEB_TREE:-Stiftung} - GRAMPSWEB_TREE=${GRAMPSWEB_TREE:-Stiftung}
- GRAMPSWEB_BASE_URL=/ahnenforschung - GRAMPSWEB_BASE_URL=/ahnenforschung
- GRAMPSWEB_STATIC_PATH=${GRAMPSWEB_STATIC_PATH:-/ahnenforschung/static}
- GRAMPSWEB_STATIC_URL=${GRAMPSWEB_STATIC_URL:-/ahnenforschung/static/}
- GRAMPSWEB_CELERY_CONFIG__broker_url=redis://redis:6379/0 - GRAMPSWEB_CELERY_CONFIG__broker_url=redis://redis:6379/0
- GRAMPSWEB_CELERY_CONFIG__result_backend=redis://redis:6379/0 - GRAMPSWEB_CELERY_CONFIG__result_backend=redis://redis:6379/0
- GRAMPSWEB_RATELIMIT_STORAGE_URI=redis://redis:6379/1 - GRAMPSWEB_RATELIMIT_STORAGE_URI=redis://redis:6379/1