Enhancement: support netalertX token for password-protected instances (#4122)

pull/4139/head
shamoon 1 month ago committed by GitHub
parent 20048ff567
commit db1fb4b899
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -9,8 +9,11 @@ _Note that the project was renamed from PiAlert to NetAlertX._
Allowed fields: `["total", "connected", "new_devices", "down_alerts"]`. Allowed fields: `["total", "connected", "new_devices", "down_alerts"]`.
If you have enabled a password on your NetAlertX instance, you will need to provide the `SYNC_api_token` as the `key` in your config.
```yaml ```yaml
widget: widget:
type: netalertx type: netalertx
url: http://ip:port url: http://ip:port
key: netalertxsyncapitoken # optional, only if password is enabled
``` ```

@ -41,6 +41,7 @@ export default async function credentialedProxyHandler(req, res, map) {
"ghostfolio", "ghostfolio",
"linkwarden", "linkwarden",
"mealie", "mealie",
"netalertx",
"tailscale", "tailscale",
"tandoor", "tandoor",
"pterodactyl", "pterodactyl",

@ -1,8 +1,8 @@
import genericProxyHandler from "utils/proxy/handlers/generic"; import credentialedProxyHandler from "utils/proxy/handlers/credentialed";
const widget = { const widget = {
api: "{url}/php/server/devices.php?action=getDevicesTotals", api: "{url}/php/server/devices.php?action=getDevicesTotals",
proxyHandler: genericProxyHandler, proxyHandler: credentialedProxyHandler,
mappings: { mappings: {
data: { data: {

Loading…
Cancel
Save