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

added domain stuff a.k.a. goddamit I'm dumb

pull/12/head
tycrek 4 years ago
parent 9a04ba9369
commit 0effd769d2
No known key found for this signature in database
GPG Key ID: 25D74F3943625263

@ -1 +1,2 @@
PORT=40115
PORT=40115
DOMAIN=localhost

@ -57,7 +57,7 @@ function startup() {
data[resourceId] = req.file;
saveData(data);
res.type('json').send({ resource: `http://lh:${process.env.PORT}/${resourceId}`, delete: `http://lh:${process.env.PORT}/delete/${req.file.filename}` });
res.type('json').send({ resource: `http://${process.env.DOMAIN}:${process.env.PORT}/${resourceId}`, delete: `http://${process.env.DOMAIN}:${process.env.PORT}/delete/${req.file.filename}` });
});
// View file

Loading…
Cancel
Save