chore: add appsettings.json files to .gitignore and remove from repository
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

- 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 <vibe@mistral.ai>
This commit is contained in:
Lasse Rune Hansen 2026-06-10 07:01:05 +02:00
parent 0990ad9063
commit 8a258cc696
5 changed files with 7 additions and 54 deletions

10
.gitignore vendored
View file

@ -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

View file

@ -1,11 +0,0 @@
{
"Logging": {
"LogLevel": {
"Default": "Debug",
"Microsoft.AspNetCore": "Information"
}
},
"ConnectionStrings": {
"DefaultConnection": "Host=localhost;Port=5432;Database=DeutschLernen;Username=postgres;Password=postgres"
}
}

View file

@ -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}"
}
}

View file

@ -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}"
}
}

View file

@ -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
}
}