Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/ass/commit/fc82a6d6b33e19756b0cfbdfa3b9320a1c7e4a19
You should set ROOT_URL correctly, otherwise the web may not work correctly.
1 changed files with
6 additions and
4 deletions
@ -74,10 +74,12 @@ router.get('/direct*', (req: AssRequest, res: AssResponse, next) => data.get(req
sia : ( ) = > SkynetDownload ( fileData )
. then ( ( stream ) = > stream . pipe ( res ) )
. then ( ( ) = > SkynetDelete ( fileData ) ) ,
local : ( ) = > {
res . header ( 'Accept-Ranges' , 'bytes' ) . header ( 'Content-Length' , ` ${ fileData . size } ` ) . type ( fileData . mimetype ) ;
fs . createReadStream ( fileData . path ) . pipe ( res ) ;
}
local : ( ) = > fs . pathExists ( path ( fileData . path ) )
. then ( ( exists ) = > {
if ( ! exists ) throw new Error ( 'File does not exist' ) ;
res . header ( 'Accept-Ranges' , 'bytes' ) . header ( 'Content-Length' , ` ${ fileData . size } ` ) . type ( fileData . mimetype ) ;
fs . createReadStream ( fileData . path ) . pipe ( res ) ;
} )
} ;
return uploaders [ fileData . randomId . startsWith ( 'sia://' ) ? 'sia' : s3enabled ? 's3' : 'local' ] ( ) ;