Skip to content

Commit

Permalink
chore: upgrade egg-redis and fix socket.io config
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamerblue committed Aug 5, 2024
1 parent 96f8bb0 commit 2f14e84
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 17 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"crypto-random-string": "^3.2.0",
"egg": "^2.37.0",
"egg-alinode": "^2.0.1",
"egg-redis": "^2.4.0",
"egg-redis": "^2.6.0",
"egg-scripts": "^2.10.0",
"egg-security": "^2.11.0",
"egg-sequelize": "^5.2.1",
Expand Down
14 changes: 7 additions & 7 deletions src/sub-app/socket-io/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/sub-app/socket-io/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"chalk": "^4.1.2",
"egg": "^2.37.0",
"egg-alinode": "^2.0.1",
"egg-redis": "^2.4.0",
"egg-redis": "^2.6.0",
"egg-scripts": "^2.10.0",
"egg-session-redis": "^2.1.0",
"egg-socket.io": "^4.1.6",
Expand Down
3 changes: 2 additions & 1 deletion src/sub-app/socket-io/src/config/config.default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ export default (appInfo: EggAppInfo) => {
redis: {
host: '127.0.0.1',
port: 6379,
// 这里透传给 socket.io-redis,需要的字段为 `auth_pass`
auth_pass: null,
db: 0,
},
Expand All @@ -89,7 +90,7 @@ export default (appInfo: EggAppInfo) => {
client: {
host: '127.0.0.1',
port: 6379,
auth_pass: null,
password: null,
db: 0,
},
};
Expand Down

0 comments on commit 2f14e84

Please sign in to comment.