Skip to content

Commit

Permalink
Update Redis configuration to use Sentinel.
Browse files Browse the repository at this point in the history
  • Loading branch information
walnuts1018 committed Nov 7, 2023
1 parent 1a1e3f2 commit c4d253e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions front/src/app/api/auth/[...nextauth]/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ import crypto from 'crypto';
import AsyncLock from 'async-lock';

const redis = new Redis({
host: process.env.REDIS_HOST,
port: 6379,
password: process.env.REDIS_PASSWORD,
db: 0,
sentinels: [{
host: process.env.REDIS_HOST,
port: 26379,
}],
sentinelPassword: process.env.REDIS_PASSWORD,
name: "mymaster"
});

const cachePassword = process.env.CACHE_PASSWORD || "password";
Expand Down

0 comments on commit c4d253e

Please sign in to comment.