mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-14 12:16:45 +00:00
Update WebSocket URL in terminal.blade.php to include /ws for consistency with the server configuration.
This commit is contained in:
1 parent
cddf8476de
commit
dcf91cc034
4 files changed
+15
-15
No files matched your search
@@ -17,8 +17,8 @@ const server = http.createServer((req, res) => {
|
||||
|
||||
const verifyClient = async (info, callback) => {
|
||||
const cookies = cookie.parse(info.req.headers.cookie || '');
|
||||
const origin = new URL(info.origin);
|
||||
const protocol = origin.protocol;
|
||||
// const origin = new URL(info.origin);
|
||||
// const protocol = origin.protocol;
|
||||
const xsrfToken = cookies['XSRF-TOKEN'];
|
||||
|
||||
// Generate session cookie name based on APP_NAME
|
||||
@@ -53,7 +53,7 @@ const verifyClient = async (info, callback) => {
|
||||
};
|
||||
|
||||
|
||||
const wss = new WebSocketServer({ server, path: '/terminal', verifyClient: verifyClient });
|
||||
const wss = new WebSocketServer({ server, path: '/terminal/ws', verifyClient: verifyClient });
|
||||
const userSessions = new Map();
|
||||
|
||||
wss.on('connection', (ws) => {
|
||||
|
||||
Reference in new issue
Block a user