Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/homepage/commit/4a4ca95fe547b6aa96d0c045616dd3da725ad4de
You should set ROOT_URL correctly, otherwise the web may not work correctly.
4 changed files with
20 additions and
3 deletions
@ -12,6 +12,11 @@ The `systemID` in the `id` field on the collections page of Beszel.
Allowed fields for 'overview' mode: `["systems", "up"]`
Allowed fields for a single system: `["name", "status", "updated", "cpu", "memory", "disk", "network"]`
| Beszel Version | Homepage Widget Version |
| -------------- | ----------------------- |
| < 0.9.0 | 1 ( default ) |
| >= 0.9.0 | 2 |
```yaml
widget:
type: beszel
@ -19,4 +24,5 @@ widget:
username: username # email
password: password
systemId: systemId # optional
version: 2 # optional, default is 1
```
@ -428,7 +428,7 @@ export function cleanServiceGroups(groups) {
// frigate
enableRecentEvents ,
// glances, immich, mealie, pihole, pfsense
// beszel, glances, immich, mealie, pihole, pfsense
version ,
// glances
@ -606,7 +606,7 @@ export function cleanServiceGroups(groups) {
if ( snapshotHost ) widget . snapshotHost = snapshotHost ;
if ( snapshotPath ) widget . snapshotPath = snapshotPath ;
}
if ( [ " glances", "immich" , "mealie" , "pfsense" , "pihole" ] . includes ( type ) ) {
if ( [ " beszel", " glances", "immich" , "mealie" , "pfsense" , "pihole" ] . includes ( type ) ) {
if ( version ) widget . version = parseInt ( version , 10 ) ;
}
if ( type === "glances" ) {
@ -45,7 +45,12 @@ export default async function beszelProxyHandler(req, res) {
if ( widget ) {
const url = new URL ( formatApiCall ( widgets [ widget . type ] . api , { endpoint , ... widget } ) ) ;
const loginUrl = formatApiCall ( widgets [ widget . type ] . api , { endpoint : "admins/auth-with-password" , ... widget } ) ;
let authEndpointVersion = "authv1" ;
if ( widget . version === 2 ) authEndpointVersion = "authv2" ;
const loginUrl = formatApiCall ( widgets [ widget . type ] . api , {
endpoint : widgets [ widget . type ] . mappings [ authEndpointVersion ] . endpoint ,
... widget ,
} ) ;
let status ;
let data ;
@ -5,6 +5,12 @@ const widget = {
proxyHandler : beszelProxyHandler ,
mappings : {
authv1 : {
endpoint : "admins/auth-with-password" ,
} ,
authv2 : {
endpoint : "collections/_superusers/auth-with-password" ,
} ,
systems : {
endpoint : "collections/systems/records?page=1&perPage=500&sort=%2Bcreated" ,
} ,