Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/ass/commit/7c4829f3495ffccefbcfd3d1718424acde3d2fc3
You should set ROOT_URL correctly, otherwise the web may not work correctly.
1 changed files with
4 additions and
4 deletions
@ -50,7 +50,7 @@ router.post('/', async (req, res) => {
try {
// Get the file size
const fileS ize = ( await fs . stat ( bbFile . file ) ) . size ;
const s ize = ( await fs . stat ( bbFile . file ) ) . size ;
// Get the hash
const sha256 = crypto . createHash ( 'sha256' ) . update ( await fs . readFile ( bbFile . file ) ) . digest ( 'base64' ) ;
@ -62,14 +62,14 @@ router.post('/', async (req, res) => {
// Build ass metadata
const assFile : AssFile = {
fakeid : random ( { length : UserConfig.config.idSize } ) , // todo: more generators
size ,
sha256 ,
fileKey ,
timestamp ,
mimetype : bbFile.mimetype ,
filename : bbFile.filename ,
timestamp ,
uploader : '0' , // todo: users
save : { } ,
sha256 : '0' , // todo: hashing
size : fileSize
} ;
// Set the save location