From 2b0114e03fe05138891d7481dd038c1bd139fe35 Mon Sep 17 00:00:00 2001 From: Stiftung Development Date: Wed, 10 Sep 2025 23:26:28 +0200 Subject: [PATCH] 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 --- .env | 33 --------------------------------- .gitignore | 4 ++++ 2 files changed, 4 insertions(+), 33 deletions(-) delete mode 100644 .env diff --git a/.env b/.env deleted file mode 100644 index f7d7655..0000000 --- a/.env +++ /dev/null @@ -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 - - \ No newline at end of file diff --git a/.gitignore b/.gitignore index e129623..e84b833 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,10 @@ ACCOUNTS.txt *.key *.pem *.p12 +.env +app/.env +*.env.local +*.env.production # Python __pycache__/