Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/ass/commit/35fcee6ec16de51e26c76afa218c06ec7410445f
You should set ROOT_URL correctly, otherwise the web may not work correctly.
2 changed files with
12 additions and
2 deletions
@ -21,7 +21,10 @@ export const App = {
* /
const assMetaMiddleware = ( port : number , proxied : boolean ) : RequestHandler = >
( req : Request , _res : Response , next : NextFunction ) = > {
req . ass = { host : ` ${ req . protocol } :// ${ req . hostname } ${ proxied ? '' : ` : ${ port } ` } ` } ;
req . ass = {
host : ` ${ req . protocol } :// ${ req . hostname } ${ proxied ? '' : ` : ${ port } ` } ` ,
version : App.pkgVersion
} ;
next ( ) ;
} ;
@ -107,7 +110,9 @@ async function main() {
warn : ( warning : Error ) = > log . warn ( 'PostCSS' , warning . toString ( ) )
} ) ) ;
app . get ( '/.ass.host' , ( req , res ) = > res . send ( req . ass . host ) ) ;
// Metadata routes
app . get ( '/.ass.host' , ( req , res ) = > res . type ( 'text' ) . send ( req . ass . host ) ) ;
app . get ( '/.ass.version' , ( req , res ) = > res . type ( 'text' ) . send ( req . ass . version ) ) ;
// ! I did not want to do it like this how tf did I back myself into this shit
app . get ( '/admin' , ( req , res ) = > res . render ( 'admin' , { version : App.pkgVersion } ) ) ;
@ -14,6 +14,11 @@ declare global {
* Combination of { protocol } : //{hostname}
* /
host : string
/ * *
* ass version
* /
version : string
}
files : { [ key : string ] : BusBoyFile }