Files
stiftung-management-system/env-template.txt
SysAdmin Agent 8de3106596
Some checks failed
CI/CD Pipeline / test (push) Has been cancelled
CI/CD Pipeline / deploy (push) Has been cancelled
Code Quality / quality (push) Has been cancelled
Switch GrampsWeb from subpath to subdomain ahnenforschung.vhtv-stiftung.de (STI-91)
The subpath approach (/ahnenforschung/) required ~15 nginx sub_filter
rules to rewrite JS/CSS/HTML paths, causing persistent issues with
font loading, Service Worker, and API routes. GrampsWeb is not designed
for subpath deployment.

Switch to dedicated subdomain where GrampsWeb runs on root /:
- nginx.conf: remove all sub_filter rules, add clean subdomain server block
- base.html: update sidebar link to subdomain URL
- compose.yml: update GRAMPSWEB_BASE_URL default
- env-template.txt: update BASE_URL reference

After deploy: run certbot for ahnenforschung.vhtv-stiftung.de SSL cert,
update .env GRAMPSWEB_BASE_URL, restart containers.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-04-05 16:37:19 +00:00

70 lines
2.2 KiB
Plaintext

# Database Configuration
POSTGRES_DB=stiftung
POSTGRES_USER=stiftung
POSTGRES_PASSWORD=stiftungpass
DB_HOST=db
DB_PORT=5432
# Django Configuration
DJANGO_SECRET_KEY=your-secret-key-here-change-in-production
DJANGO_DEBUG=1
DJANGO_ALLOWED_HOSTS=localhost,127.0.0.1
# Production environment variables (alternative names for Docker Compose)
# SECRET_KEY=your-production-secret-key-here
# ALLOWED_HOSTS=your-domain.com,www.your-domain.com,localhost,127.0.0.1
LANGUAGE_CODE=de
TIME_ZONE=Europe/Berlin
# Session Configuration (prevents conflicts between apps)
SESSION_COOKIE_NAME=stiftung_sessionid
CSRF_COOKIE_NAME=stiftung_csrftoken
# Redis Configuration
REDIS_URL=redis://redis:6379/0
# Paperless-ngx Production Configuration
PAPERLESS_DB=paperless_prod
PAPERLESS_USER=paperless_user
PAPERLESS_PASSWORD=secure-paperless-password
PAPERLESS_ADMIN_USER=admin
PAPERLESS_ADMIN_PASSWORD=secure-admin-password
PAPERLESS_ADMIN_MAIL=admin@vhtv-stiftung.de
PAPERLESS_SECRET_KEY=generate-paperless-secret-key
# Paperless-ngx Integration (for Django app)
PAPERLESS_API_URL=https://vhtv-stiftung.de/paperless
PAPERLESS_API_TOKEN=your-api-token-here
# Tag-Namen (mit Unterstrichen, wie in Paperless NGX umbenannt)
PAPERLESS_REQUIRED_TAG=Stiftung_Destinatäre
PAPERLESS_LAND_TAG=Stiftung_Land_und_Pächter
PAPERLESS_ADMIN_TAG=Stiftung_Administration
PAPERLESS_DESTINATAERE_TAG_ID=210
PAPERLESS_LAND_TAG_ID=204
PAPERLESS_ADMIN_TAG_ID=216
# IMAP-Konfiguration (E-Mail-Eingang für Destinatäre)
IMAP_HOST=mail.vhtv-stiftung.de
IMAP_PORT=993
IMAP_USER=paperless@vhtv-stiftung.de
IMAP_PASSWORD=your-imap-password-here
IMAP_FOLDER=INBOX
IMAP_USE_SSL=true
# Integration von Grampsweb zur Ahnenforschung und Prüfung
# Django-App Verbindung zu GrampsWeb API (internes Docker-Netzwerk)
GRAMPS_URL=http://grampsweb:5000
GRAMPS_USERNAME=Stiftung
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
# Full external URL (used by GrampsWeb for email links, OIDC, etc.)
GRAMPSWEB_BASE_URL=https://ahnenforschung.vhtv-stiftung.de