mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-13 23:17:02 +03:00
Prepare dockerfile for use, allow configuring via env vars
This commit is contained in:
@@ -28,7 +28,7 @@ export function rateLimitMiddleware(limitConfig: RateLimitConfig, getUserID?: (r
|
||||
return next();
|
||||
}
|
||||
},
|
||||
store: config.redis ? new RedisStore({
|
||||
store: config.redis?.enabled ? new RedisStore({
|
||||
sendCommand: (...args: string[]) => redis.sendCommand(args),
|
||||
}) : null,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user