Commit d9453d2d authored by Vũ Gia Vương's avatar Vũ Gia Vương

add credentials: true

parent a3bb5359
......@@ -40,7 +40,8 @@ const io = new socket_io_1.Server(server, {
"https://play.gamee.vn",
"https://dev.gamee.vn",
"http://localhost:7456"
]
],
credentials: true
}
});
const pubClient = (0, redis_1.createClient)({ url: REDIS_URL });
......
......@@ -6,11 +6,6 @@ module.exports = {
script: "dist/index.js",
instances: "max",
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
}
]
......
......@@ -29,7 +29,8 @@ const io = new Server(server, {
"https://play.gamee.vn",
"https://dev.gamee.vn",
"http://localhost:7456"
]
],
credentials: true
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment