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

Fixed incorrect path check for custom index (cherry picked from ts branch)

pull/87/head
tycrek 4 years ago
parent d3ef432eb9
commit 960f946928
No known key found for this signature in database
GPG Key ID: 25D74F3943625263

@ -66,7 +66,7 @@ useSsl && app.use(helmet.hsts({ preload: true })); // skipcq: JS-0093
app.use(nofavicon);
// Use custom index, otherwise render README.md
const ASS_INDEX = indexFile !== '' && fs.existsSync(`./${indexFile}`) && require(`./${indexFile}`);
const ASS_INDEX = indexFile !== '' && fs.existsSync(path(`${indexFile}`)) && require(`./${indexFile}`);
const ASS_INDEX_ENABLED = typeof ASS_INDEX === typeof Function;
app.get('/', (req, res, next) => ASS_INDEX_ENABLED // skipcq: JS-0229
? ASS_INDEX(req, res, next)

Loading…
Cancel
Save