Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/homepage/commit/ba3b48e8ce75ca7cb7ee36a770220e265a01d681
You should set ROOT_URL correctly, otherwise the web may not work correctly.
12 changed files with
14 additions and
18 deletions
@ -114,5 +114,5 @@
"apps" : "Applications" ,
"clients" : "Clients" ,
"messages" : "Messages"
} ,
}
}
@ -125,5 +125,5 @@
"apps" : "Applications" ,
"clients" : "Clients" ,
"messages" : "Messages"
} ,
}
}
@ -114,5 +114,5 @@
"apps" : "Applications" ,
"clients" : "Clients" ,
"messages" : "Messages"
} ,
}
}
@ -125,5 +125,5 @@
"apps" : "Applications" ,
"clients" : "Clients" ,
"messages" : "Messages"
} ,
}
}
@ -114,5 +114,5 @@
"apps" : "Applications" ,
"clients" : "Clients" ,
"messages" : "Messages"
} ,
}
}
@ -114,5 +114,5 @@
"apps" : "Applications" ,
"clients" : "Clients" ,
"messages" : "Messages"
} ,
}
}
@ -114,5 +114,5 @@
"apps" : "Applications" ,
"clients" : "Clients" ,
"messages" : "Messages"
} ,
}
}
@ -125,5 +125,5 @@
"apps" : "Applications" ,
"clients" : "Clients" ,
"messages" : "Messages"
} ,
}
}
@ -114,5 +114,5 @@
"apps" : "Applications" ,
"clients" : "Clients" ,
"messages" : "Messages"
} ,
}
}
@ -114,5 +114,5 @@
"apps" : "Aplicações" ,
"clients" : "Clientes" ,
"messages" : "Mensagens"
} ,
}
}
@ -42,7 +42,7 @@ const widgetMappings = {
npm : Npm ,
tautulli : Tautulli ,
gotify : Gotify ,
sabnzbd : S ab nzbd
sabnzbd : S AB nzbd
} ;
export default function Widget ( { service } ) {
@ -8,13 +8,6 @@ export default async function credentialedProxyHandler(req, res) {
if ( group && service ) {
const widget = await getServiceWidget ( group , service ) ;
var headersData
if ( widget . type == "gotify" ) {
headersData = { "X-gotify-Key" : ` ${ widget . key } ` , "Content-Type" : "application/json" , }
} else {
headersData = { "X-API-Key" : ` ${ widget . key } ` , "Content-Type" : "application/json" , }
}
if ( widget ) {
const url = new URL ( formatApiCall ( widget . type , { endpoint , ... widget } ) ) ;
@ -24,6 +17,9 @@ export default async function credentialedProxyHandler(req, res) {
if ( widget . type === "coinmarketcap" ) {
headers [ "X-CMC_PRO_API_KEY" ] = ` ${ widget . key } ` ;
}
if ( widget . type === "gotify" ) {
headers [ "X-gotify-Key" ] = ` ${ widget . key } ` ;
} else {
headers [ "X-API-Key" ] = ` ${ widget . key } ` ;
}