Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
game-server-flip-jump
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vũ Gia Vương
game-server-flip-jump
Commits
d9453d2d
Commit
d9453d2d
authored
Aug 20, 2025
by
Vũ Gia Vương
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add credentials: true
parent
a3bb5359
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
7 deletions
+4
-7
index.js
dist/index.js
+2
-1
ecosystem.config.js
ecosystem.config.js
+0
-5
index.ts
src/index.ts
+2
-1
No files found.
dist/index.js
View file @
d9453d2d
...
@@ -40,7 +40,8 @@ const io = new socket_io_1.Server(server, {
...
@@ -40,7 +40,8 @@ const io = new socket_io_1.Server(server, {
"https://play.gamee.vn"
,
"https://play.gamee.vn"
,
"https://dev.gamee.vn"
,
"https://dev.gamee.vn"
,
"http://localhost:7456"
"http://localhost:7456"
]
],
credentials
:
true
}
}
});
});
const
pubClient
=
(
0
,
redis_1
.
createClient
)({
url
:
REDIS_URL
});
const
pubClient
=
(
0
,
redis_1
.
createClient
)({
url
:
REDIS_URL
});
...
...
ecosystem.config.js
View file @
d9453d2d
...
@@ -6,11 +6,6 @@ module.exports = {
...
@@ -6,11 +6,6 @@ module.exports = {
script
:
"dist/index.js"
,
script
:
"dist/index.js"
,
instances
:
"max"
,
instances
:
"max"
,
exec_mode
:
"cluster"
,
exec_mode
:
"cluster"
,
// 👇 quan trọng: sticky mode
// PM2 apt build cũ không nhận flag --sticky
// nhưng bạn có thể set trong config file
// một số bản hỗ trợ, một số bản thì không
// nếu không hỗ trợ thì sẽ bị ignore
sticky
:
true
sticky
:
true
}
}
]
]
...
...
src/index.ts
View file @
d9453d2d
...
@@ -29,7 +29,8 @@ const io = new Server(server, {
...
@@ -29,7 +29,8 @@ const io = new Server(server, {
"https://play.gamee.vn"
,
"https://play.gamee.vn"
,
"https://dev.gamee.vn"
,
"https://dev.gamee.vn"
,
"http://localhost:7456"
"http://localhost:7456"
]
],
credentials
:
true
}
}
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment