Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/homepage/blame/commit/0d47dcaac7697409c38b9e6e4d9d3931b278ac6c/docs/widgets/services/opnsense.md You should set ROOT_URL correctly, otherwise the web may not work correctly.
homepage/docs/widgets/services/opnsense.md

24 lines
802 B

2 years ago
---
title: OPNSense
description: OPNSense Widget Configuration
---
Learn more about [OPNSense](https://opnsense.org/).
2 years ago
The API key & secret can be generated via the webui by creating a new user at _System/Access/Users_. Ensure "Generate a scrambled password to prevent local database logins for this user" is checked and then edit the effective privileges selecting **only**:
- Diagnostics: System Activity
- Status: Traffic Graph
2 years ago
Finally, create a new API key which will download an `apikey.txt` file with your key and secret in it. Use the values as the username and password fields, respectively, in your homepage config.
Allowed fields: `["cpu", "memory", "wanUpload", "wanDownload"]`.
```yaml
widget:
type: opnsense
url: http://opnsense.host.or.ip
username: key
password: secret
2 years ago
```