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

save domain along with file

pull/22/head
tycrek 4 years ago
parent b68cf5869a
commit 68a1edbbfe
No known key found for this signature in database
GPG Key ID: 25D74F3943625263

@ -38,6 +38,9 @@ router.post('/', (req, res) => {
const trueDomain = getTrueDomain(req.headers['x-ass-domain']);
const generator = req.headers['x-ass-access'] || resourceIdType;
// Save domain with file
req.file.domain = `${getTrueHttp()}${trueDomain}`;
// Get the uploaded time in milliseconds
req.file.timestamp = DateTime.now().toMillis();

Loading…
Cancel
Save