From 8a258cc696bc604fd75646a92949c90bba673a3c Mon Sep 17 00:00:00 2001 From: Lasse Rune Hansen Date: Wed, 10 Jun 2026 07:01:05 +0200 Subject: [PATCH] chore: add appsettings.json files to .gitignore and remove from repository - Add appsettings.json and appsettings.*.json to .gitignore - Remove all appsettings.json files from git tracking - Prevents accidental commit of API keys and configuration secrets Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe --- .gitignore | 10 +++++++--- GermanApp/appsettings.Development.json | 11 ----------- GermanApp/appsettings.Production.json | 11 ----------- GermanApp/appsettings.Staging.json | 11 ----------- GermanApp/appsettings.json | 18 ------------------ 5 files changed, 7 insertions(+), 54 deletions(-) delete mode 100644 GermanApp/appsettings.Development.json delete mode 100644 GermanApp/appsettings.Production.json delete mode 100644 GermanApp/appsettings.Staging.json delete mode 100644 GermanApp/appsettings.json diff --git a/.gitignore b/.gitignore index a8533c2..81a5e7b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,9 +1,10 @@ -# Create .gitignore (if not already present) -echo "# Dependencies +# Dependencies node_modules/ dist/ build/ *.log + +# Environment files .env .env.local .env.*.local @@ -25,6 +26,9 @@ obj/ *.suo *.cache +# Configuration files (contain secrets) +appsettings.json +appsettings.*.json + # Frontend .coverage -" > .gitignore \ No newline at end of file diff --git a/GermanApp/appsettings.Development.json b/GermanApp/appsettings.Development.json deleted file mode 100644 index 045b0f3..0000000 --- a/GermanApp/appsettings.Development.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "Logging": { - "LogLevel": { - "Default": "Debug", - "Microsoft.AspNetCore": "Information" - } - }, - "ConnectionStrings": { - "DefaultConnection": "Host=localhost;Port=5432;Database=DeutschLernen;Username=postgres;Password=postgres" - } -} diff --git a/GermanApp/appsettings.Production.json b/GermanApp/appsettings.Production.json deleted file mode 100644 index 4dd231b..0000000 --- a/GermanApp/appsettings.Production.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "Logging": { - "LogLevel": { - "Default": "Warning", - "Microsoft.AspNetCore": "Error" - } - }, - "ConnectionStrings": { - "DefaultConnection": "Host=prod-db;Port=5432;Database=DeutschLernen;Username=postgres;Password=${DB_PASSWORD}" - } -} diff --git a/GermanApp/appsettings.Staging.json b/GermanApp/appsettings.Staging.json deleted file mode 100644 index 4635bcd..0000000 --- a/GermanApp/appsettings.Staging.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "Logging": { - "LogLevel": { - "Default": "Information", - "Microsoft.AspNetCore": "Warning" - } - }, - "ConnectionStrings": { - "DefaultConnection": "Host=staging-db;Port=5432;Database=DeutschLernen;Username=postgres;Password=${DB_PASSWORD}" - } -} diff --git a/GermanApp/appsettings.json b/GermanApp/appsettings.json deleted file mode 100644 index 41ed9f9..0000000 --- a/GermanApp/appsettings.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "Logging": { - "LogLevel": { - "Default": "Information", - "Microsoft.AspNetCore": "Warning" - } - }, - "AllowedHosts": "*", - "ConnectionStrings": { - "DefaultConnection": "Host=localhost;Port=5432;Database=DeutschLernen;Username=postgres;Password=postgres" - }, - "Jwt": { - "Key": "your-super-secret-key-at-least-32-characters-long", - "Issuer": "DeutschLernen", - "Audience": "DeutschLernen", - "ExpireHours": 24 - } -}