mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-25 08:58:23 +03:00
Prepare dockerfile for use, allow configuring via env vars
This commit is contained in:
@@ -100,7 +100,7 @@ export default async function dumpDatabase(req: Request, res: Response, showPage
|
||||
res.status(404).send("Database dump is disabled");
|
||||
return;
|
||||
}
|
||||
if (!config.postgres) {
|
||||
if (!config.postgres?.enabled) {
|
||||
res.status(404).send("Not supported on this instance");
|
||||
return;
|
||||
}
|
||||
@@ -175,7 +175,7 @@ export async function redirectLink(req: Request, res: Response): Promise<void> {
|
||||
res.status(404).send("Database dump is disabled");
|
||||
return;
|
||||
}
|
||||
if (!config.postgres) {
|
||||
if (!config.postgres?.enabled) {
|
||||
res.status(404).send("Not supported on this instance");
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user