Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/homepage/commit/730f1c5ec10bacb28b47fa6b137ff1557e76b46e
You should set ROOT_URL correctly, otherwise the web may not work correctly.
1 changed files with
23 additions and
1 deletions
@ -1,9 +1,31 @@
import { jsonArrayFilter } from "utils/proxy/api-helpers" ;
import credentialedProxyHandler from "utils/proxy/handlers/credentialed" ;
import genericProxyHandler from "utils/proxy/handlers/generic" ;
import getServiceWidget from "utils/config/service-helpers" ;
const widget = {
api : "{url}/api/v2.0/{endpoint}" ,
proxyHandler : genericProxyHandler ,
proxyHandler : async ( req , res , map ) => { // choose proxy handler based on widget settings
const { group , service } = req . query ;
if ( group && service ) {
const widgetOpts = await getServiceWidget ( group , service ) ;
let handler ;
if ( widgetOpts . username && widgetOpts . password ) {
handler = genericProxyHandler ;
} else if ( widgetOpts . key ) {
handler = credentialedProxyHandler ;
}
if ( handler ) {
return handler ( req , res , map ) ;
}
return res . status ( 500 ) . json ( { error : "Username / password or API key required" } ) ;
}
return res . status ( 500 ) . json ( { error : "Error parsing widget request" } ) ;
} ,
mappings : {
alerts : {