SECURITY: Remove .env from Git tracking and add to .gitignore

- Remove sensitive .env file from Git repository
- Add comprehensive .env file patterns to .gitignore
- Prevent accidental commit of environment variables and secrets
This commit is contained in:
Stiftung Development
2025-09-10 23:26:28 +02:00
parent 9075f68d16
commit 2b0114e03f
2 changed files with 4 additions and 33 deletions

33
.env
View File

@@ -1,33 +0,0 @@
# 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
LANGUAGE_CODE=de
TIME_ZONE=Europe/Berlin
# Redis Configuration
REDIS_URL=redis://redis:6379/0
# Paperless-ngx Integration
PAPERLESS_API_URL=http://192.168.178.167:30070
PAPERLESS_API_TOKEN=e7107a43b6bef6707f11d7f7462708b87be3123c
# 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
# Integration von Grampsweb zur Ahnenforschung und Prüfung
GRAMPS_URL=http://192.168.178.167:30179
GRAMPS_USERNAME=Stiftung
GRAMPS_PASSWORD=home4Gty94rj*de

4
.gitignore vendored
View File

@@ -3,6 +3,10 @@ ACCOUNTS.txt
*.key
*.pem
*.p12
.env
app/.env
*.env.local
*.env.production
# Python
__pycache__/