Add diagnostics endpoints and types for improved system monitoring
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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user