feat: accept, store and expose client diagnostics
- V11 client_logs table with per-user storage and retention/pruning - POST/GET/DELETE /logs with batch validation, rate limit and admin access - redact bearer tokens, Authorization headers and query/JSON secrets twice - add X-Request-Id to responses and include it in the server log pattern - report client error entries immediately in the server log - scripts/logs.sh for source-side retrieval and clearing - chart knobs CLIENT_LOG_RETENTION_DAYS and CLIENT_LOG_MAX_ROWS_PER_USER
This commit is contained in:
1 parent
91312faa1c
commit
44b75c4d4d
19 files changed
+981
-5
No files matched your search
@@ -2,5 +2,5 @@ apiVersion: v2
|
||||
name: audiomanager
|
||||
description: Mood-first self-hosted music server
|
||||
type: application
|
||||
version: 0.4.1
|
||||
version: 0.5.0
|
||||
appVersion: "0.1.0"
|
||||
@@ -65,6 +65,10 @@ spec:
|
||||
value: {{ .Values.loudness.enabled | quote }}
|
||||
- name: LOUDNESS_TARGET_LUFS
|
||||
value: {{ .Values.loudness.targetLufs | quote }}
|
||||
- name: CLIENT_LOG_RETENTION_DAYS
|
||||
value: {{ .Values.clientLogs.retentionDays | quote }}
|
||||
- name: CLIENT_LOG_MAX_ROWS_PER_USER
|
||||
value: {{ .Values.clientLogs.maxRowsPerUser | quote }}
|
||||
{{- if .Values.deezer.existingSecret }}
|
||||
- name: DEEZER_ARL
|
||||
valueFrom:
|
||||
|
||||
@@ -47,6 +47,12 @@ loudness:
|
||||
# -16 LUFS is the ReplayGain-style target; -14 matches most streaming services.
|
||||
targetLufs: -16
|
||||
|
||||
# Client diagnostics uploaded by the apps. The server redacts credentials again
|
||||
# and keeps only a short window so bug reports do not grow the database.
|
||||
clientLogs:
|
||||
retentionDays: 14
|
||||
maxRowsPerUser: 20000
|
||||
|
||||
# The media root, database, cover cache and download temp dir all live here.
|
||||
data:
|
||||
persistence:
|
||||
|
||||
Reference in new issue
Block a user