Skip to content
This repository has been archived by the owner on Dec 25, 2024. It is now read-only.

Commit

Permalink
Add Redis database selection to options.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
walnuts1018 committed Nov 11, 2023
1 parent bd25d92 commit 1f489ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion front/src/app/api/auth/[...nextauth]/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ const redis = new Redis({
}],
sentinelPassword: process.env.REDIS_PASSWORD,
password: process.env.REDIS_PASSWORD,
name: "mymaster"
name: "mymaster",
db: 2,
});

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

0 comments on commit 1f489ae

Please sign in to comment.