Skip to content

Commit

Permalink
Merge pull request #2185 from SkyCryptWebsite/quick_fix
Browse files Browse the repository at this point in the history
Fix redis credentials issue
  • Loading branch information
Shiiyu authored Feb 2, 2024
2 parents fbd34d9 + 57377dd commit 49bbbfa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
7 changes: 1 addition & 6 deletions src/credentials.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,7 @@ const defaultCredentials = {
hypixel_api_key: "",
dbUrl: "mongodb://localhost:27017",
dbName: "sbstats",
redisUrl: {
port: 6379,
host: "redis://localhost:6379",
username: "default",
password: "password",
},
redisUrl: "redis://localhost:6379",
get session_secret() {
return randomBytes(32).toString("hex");
},
Expand Down
7 changes: 1 addition & 6 deletions src/redis.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,4 @@
import Redis from "ioredis";
import credentials from "./credentials.js";

export const redisClient = new Redis({
port: credentials.redisUrl.port,
host: credentials.redisUrl.host,
password: credentials.redisUrl.password,
username: credentials.redisUrl.username,
});
export const redisClient = new Redis(credentials.redisUrl);

0 comments on commit 49bbbfa

Please sign in to comment.