Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/ass/commit/83c89a9e25e88e82581329fc453629775bcd6ed1
You should set ROOT_URL correctly, otherwise the web may not work correctly.
2 changed files with
6 additions and
6 deletions
@ -4,8 +4,8 @@ import { Router, json as BodyParserJson } from 'express';
import { log } from '../log' ;
const router = Router ( { caseSensitive : true } ) ;
const userConfigExists = fs . pathExistsSync ( path . join ( 'userconfig.json' ) ) ;
const userConfigExists = ( ) = > fs . pathExistsSync ( path . join ( 'userconfig.json' ) ) ;
router . get ( '/' , ( req , res ) = > userConfigExists ? res . render ( 'index' ) : res . redirect ( '/setup' ) ) ;
router . get ( '/' , ( req , res ) = > userConfigExists ( ) ? res . render ( 'index' ) : res . redirect ( '/setup' ) ) ;
export { router } ;
@ -5,15 +5,15 @@ import { log } from '../log';
import { UserConfiguration } from 'ass' ;
const router = Router ( { caseSensitive : true } ) ;
const userConfigExists = fs . pathExistsSync ( path . join ( 'userconfig.json' ) ) ;
const userConfigExists = ( ) = > fs . pathExistsSync ( path . join ( 'userconfig.json' ) ) ;
// Static routes
router . get ( '/' , ( req , res ) = > userConfigExists ? res . redirect ( '/' ) : res . render ( 'setup' ) ) ;
router . get ( '/ui.js' , ( req , res ) = > userConfigExists ? res . send ( '' ) : res . type ( 'text' ) . sendFile ( path . join ( 'dist-frontend/setup.mjs' ) ) ) ;
router . get ( '/' , ( req , res ) = > userConfigExists ( ) ? res . redirect ( '/' ) : res . render ( 'setup' ) ) ;
router . get ( '/ui.js' , ( req , res ) = > userConfigExists ( ) ? res . send ( '' ) : res . type ( 'text' ) . sendFile ( path . join ( 'dist-frontend/setup.mjs' ) ) ) ;
// Setup route
router . post ( '/' , BodyParserJson ( ) , ( req , res ) = > {
if ( userConfigExists )
if ( userConfigExists () )
return res . status ( 409 ) . json ( { success : false , message : 'User config already exists' } ) ;
log . debug ( 'Running setup' ) ;