Refactor: Server-Settings von appsettings.json in DB-Tabelle (server_settings)

- Neuer ServerSettingsService: zentrale Settings in SQLite mit In-Memory-Cache
- Auto-Migration: bestehende appsettings.Production.json wird einmalig in DB übernommen
- Alle Services umgestellt: IConfiguration → ServerSettingsService (dynamisch, kein Neustart)
- Port bleibt als einziges Setting in appsettings.Production.json (erfordert Neustart)
- ServerSettingsEndpoint: liest/schreibt DB statt JSON-Datei, Port als Sonder-Setting
- IConfiguration komplett entfernt aus allen Services (ChatService, ToolService, AnthropicService,
  OpenAiService, KreaService, TelegramService, KeyScannerService, GitHubEventScannerService)
- AuthMiddleware: KreaApiKey dynamisch aus DB
- appsettings.json bereinigt: nur noch Port und Logging
- Dokumentation aktualisiert (ARCHITECTURE.md, ARCHITECTURE_QUICK.md, README.md)
This commit is contained in:
Meleki committed 2026-03-14 13:06:44 +01:00
1 parent 542a031172
commit 122000487c
18 files changed
+389 -270

No files matched your search

+1 -10
View File
@@ -275,16 +275,7 @@ User-Input → POST /api/chat (SSE)
```json
{
"Port": 19000, // Server-Port (erfordert Neustart)
"MaxIterations": 100, // Max Tool-Loop Iterationen pro Chat
"MaxHistory": 120, // Max Messages in Chat-History
"ReminderInterval": 30, // System-Prompt-Reminder alle N Messages
"ExecuteTimeout": 180, // Timeout für Shell-Befehle in Sekunden
"PayloadLogging": false, // API-Payloads loggen (Debug)
"PayloadLoggingGzip": false, // Payload-Logs als .gz komprimieren
"KreaToken": "", // Krea API Token (optional)
"KreaApiKey": "", // API-Key für Krea-Endpoints ohne User-Auth (optional)
"GeminiApiKey": "" // Google Gemini API Key (optional, kostenlos)
"Port": 19000 // Server-Port (Default 19000, erfordert Neustart)
}
```