Add service widget for Technitium DNS Server

Add technitium widget documentation
Update "en" common translation file
Update home widget files to include the technitium widget
Update service-helpers to allow 'range' field for technitium widget
Lint
This commit is contained in:
Bobby Driggs
2024-08-28 09:38:07 -07:00
committed by Bobby Driggs
parent e2518b37d9
commit d8e45a2fbc
9 changed files with 197 additions and 0 deletions

View File

@@ -113,6 +113,7 @@ You can also find a list of all available service widgets in the sidebar navigat
- [Syncthing Relay Server](syncthing-relay-server.md)
- [Tailscale](tailscale.md)
- [Tandoor](tandoor.md)
- [Technitium DNS](technitium.md)
- [TDarr](tdarr.md)
- [Traefik](traefik.md)
- [Transmission](transmission.md)

View File

@@ -0,0 +1,28 @@
---
title: Technitium DNS Server
description: Technitium DNS Server Widget Configuration
---
Learn more about [Technitium DNS Server](https://technitium.com/dns/).
Allowed fields (up to 4): `["totalQueries","totalNoError","totalServerFailure","totalNxDomain","totalRefused","totalAuthoritative","totalRecursive","totalCached","totalBlocked","totalDropped","totalClients"]`.
Defaults to: `["totalQueries", "totalAuthoritative", "totalCached", "totalServerFailure"]`
```yaml
widget:
type: technitium
url: <url to dns server>
key: biglongapitoken
range: LastDay # optional, defaults to LastHour
```
#### API Key
This can be generated via the Technitium DNS Dashboard, and should be generated from a special API specific user.
#### Range
`range` value determines how far back of statistics to pull data for. The value comes directly from Technitium API documentation found [here](https://github.com/TechnitiumSoftware/DnsServer/blob/master/APIDOCS.md#dashboard-api-calls), defined as `"type"`. The value can be one of: `LastHour`, `LastDay`, `LastWeek`, `LastMonth`, `LastYear`.
**NOTE:** The value of `Custom` as specified in the API documentation is _NOT_ supported.