Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/ass/commit/2164b87634c9aefd90b9edd49d5a9a27c6339e1d You should set ROOT_URL correctly, otherwise the web may not work correctly.

I'm desperate please work

pull/12/head
tycrek 4 years ago
parent 850d6ceb21
commit 2164b87634
No known key found for this signature in database
GPG Key ID: 25D74F3943625263

@ -62,7 +62,7 @@ function startup() {
// View file
app.get('/:resourceId', (req, res) => {
let resourceId = req.params.resourceId;
let resourceId = req.params.resourceId.split('.')[0];
let fileData = fs.readFileSync(path(data[resourceId].path));
if (data[resourceId]) res.header('Accept-Ranges', 'bytes').header('Content-Length', fileData.byteLength).type(data[resourceId].mimetype).send(fileData);// .sendFile(path(data[resourceId].path));
else res.sendStatus(404);

Loading…
Cancel
Save