mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-16 15:26:40 +00:00
- Add debug endpoint for monitoring netbird clients - Add types package with AccountID type - Refactor netbird roundtrip to key clients by AccountID - Multiple domains can share the same client per account - Add status notifier for tunnel connection updates - Add OIDC flags to CLI - Add tests for netbird client management
41 lines
995 B
HTML
41 lines
995 B
HTML
{{define "index"}}
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>NetBird Proxy Debug</title>
|
|
<style>{{template "style"}}</style>
|
|
</head>
|
|
<body>
|
|
<h1>NetBird Proxy Debug</h1>
|
|
<p class="info">Version: {{.Version}} | Uptime: {{.Uptime}}</p>
|
|
<h2>Clients ({{.ClientCount}}) | Domains ({{.TotalDomains}})</h2>
|
|
{{if .Clients}}
|
|
<table>
|
|
<tr>
|
|
<th>Account ID</th>
|
|
<th>Domains</th>
|
|
<th>Age</th>
|
|
<th>Status</th>
|
|
</tr>
|
|
{{range .Clients}}
|
|
<tr>
|
|
<td><a href="/debug/clients/{{.AccountID}}/tools">{{.AccountID}}</a></td>
|
|
<td>{{.Domains}}</td>
|
|
<td>{{.Age}}</td>
|
|
<td>{{.Status}}</td>
|
|
</tr>
|
|
{{end}}
|
|
</table>
|
|
{{else}}
|
|
<p>No clients connected</p>
|
|
{{end}}
|
|
<h2>Endpoints</h2>
|
|
<ul>
|
|
<li><a href="/debug/clients">/debug/clients</a> - all clients detail</li>
|
|
<li><a href="/debug/health">/debug/health</a> - health check</li>
|
|
</ul>
|
|
<p class="info">Add ?format=json or /json suffix for JSON output</p>
|
|
</body>
|
|
</html>
|
|
{{end}}
|