Add diagnostics endpoints and types for improved system monitoring
ci / build-backend (push) Successful in 1m18s
ci / build-frontend (push) Successful in 38s
ci / tests (push) Successful in 1m21s
ci / sonar (push) Successful in 3m46s

Implemented new diagnostics endpoints in the API and added corresponding route configurations in the frontend. Introduced types for diagnostics data, including host, forwarding, and system diagnostics, to enhance monitoring capabilities. Updated localization files to support diagnostics UI elements in both English and Russian, ensuring a comprehensive user experience.
This commit is contained in:
Leonid Pershin
2026-08-02 13:49:48 +03:00
parent 88cfe3716b
commit bed6d4fcfc
16 changed files with 971 additions and 0 deletions
+55
View File
@@ -989,6 +989,61 @@ export const en = {
Other: 'files outside the known directories — usually zero',
},
},
diagnostics: {
title: 'Diagnostics',
refresh: 'Refresh',
serverTime: 'server time {{time}}',
verdict: {
ok: 'Links are built over HTTPS ({{origin}}) — forwarding works.',
proxyNotTrusted:
'The proxy sends X-Forwarded-Proto: https, but the immediate peer {{ip}} is not trusted — the scheme stayed HTTP, so M3U/EPG links go out over http.',
protoHeaderMissing:
'The scheme stayed HTTP and no X-Forwarded-Proto arrives from the proxy. Configure the proxy to send this header.',
applyHint: 'Add to .env and restart the container:',
},
copy: 'Copy',
copied: 'Copied',
forwarding: {
title: 'Proxy forwarding',
https: 'HTTPS',
http: 'HTTP',
remoteIp: 'Immediate peer',
applied: 'Forwarding applied',
appliedYes: 'yes — headers trusted',
appliedNo: 'no — headers discarded',
forwardLimit: 'Forward limit',
flags: 'Processed headers',
knownProxies: 'Known proxies',
knownNetworks: 'Known networks',
},
database: {
title: 'Database',
reachable: 'Reachable',
unreachable: 'Unreachable',
latency: 'response {{ms}} ms',
},
storage: {
title: 'Storage',
exists: 'Directory present',
missing: 'Directory missing',
writable: 'Writable',
readOnly: 'Read-only',
lowSpace: 'Low space',
root: 'Root',
free: 'Free / total',
},
tools: {
available: 'Available',
missing: 'Not found',
},
host: {
title: 'Process and runtime',
appVersion: 'Build version',
environment: 'Environment',
framework: 'Framework',
os: 'OS',
},
},
telegram: {
title: 'Telegram',
enable: 'Bot enabled',