mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-12 14:37:17 +03:00
Prepare dockerfile for use, allow configuring via env vars
This commit is contained in:
@@ -25,7 +25,7 @@ let exportClient: RedisSB = {
|
||||
quit: () => new Promise((resolve, reject) => reject()),
|
||||
};
|
||||
|
||||
if (config.redis) {
|
||||
if (config.redis?.enabled) {
|
||||
Logger.info("Connected to redis");
|
||||
const client = createClient(config.redis);
|
||||
client.connect();
|
||||
|
||||
Reference in New Issue
Block a user