Skip to content

Commit

Permalink
Support redis password
Browse files Browse the repository at this point in the history
  • Loading branch information
spencerpogo committed Jan 8, 2022
1 parent 1491f80 commit 17d90f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions api/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const schema = z.object({
DATABASE_FILENAME: z.string(),
REDIS_HOST: z.string(),
REDIS_PORT: z.string().regex(PORT_REGEX),
REDIS_PASSWORD: z.string().optional(),
GITHUB_CLIENT_ID: z.string(),
GITHUB_CLIENT_SECRET: z.string(),
});
Expand Down
1 change: 1 addition & 0 deletions api/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ async function main() {
const redis = new IORedis({
host: CONFIG.REDIS_HOST,
port: Number(CONFIG.REDIS_PORT),
password: CONFIG.REDIS_PASSWORD,
});
app.use(
session({
Expand Down

0 comments on commit 17d90f8

Please sign in to comment.