diff --git a/doc/demo/client/index.html b/doc/demo/client/index.html index d424ff5..29e4e8e 100644 --- a/doc/demo/client/index.html +++ b/doc/demo/client/index.html @@ -39,7 +39,7 @@ var containerName = document.getElementById("containerName").value // 连接websocket // ws = new WebSocket("wss://k8s-webshell.finupgroup.com:7777/api/ws?" + "podNs=" + podNs + "&podName=" + podName + "&containerName=" + containerName + "&token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImFkbWluIiwiUGFzc3dvcmQiOiIxMjMiLCJleHAiOjE1NTQxMTgxMjUsImlzcyI6Ims4cy13ZWJzaGVsbCJ9.Dss1g9ZMflB_x0vkaK9GhRHYSZf2xek9VpfUeZaThL"); - ws = new WebSocket("wss://k8s-webshell.finupgroup.com:7777/api/ws?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZWNyZXRrZXkiOiJyaWNoaWUiLCJQYWFzVXNlciI6InpodXJ1aXFpbmciLCJwb2ROcyI6InJpY2hpZSIsInBvZE5hbWUiOiJteS1uZ2lueC1mOTk5NWJkYjYtanRyNWsiLCJjb250YWluZXJOYW1lIjoibXktbmdpbngiLCJleHAiOjE1NTQyOTUwODksImlzcyI6Ims4cy13ZWJzaGVsbCJ9.P_5TQmpf29rcIDHPAiSmVMyvgyKIu8XWYLVqEOP7QRU"); + ws = new WebSocket("wss://k8s-webshell.finupgroup.com:30001/api/ws?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZWNyZXRrZXkiOiJFUmt5TksyUSIsIlBhYXNVc2VyIjoiemh1cnVpcWluZyIsInBvZE5zIjoicmljaGllIiwicG9kTmFtZSI6Im15LW5naW54LWY5OTk1YmRiNi1qdHI1ayIsImNvbnRhaW5lck5hbWUiOiJteS1uZ2lueCIsImV4cCI6MTU1NDMwNTIxNCwiaXNzIjoiazhzLXdlYnNoZWxsIn0.O2XkjFo_8aYeIOrXMgrYVw3zA-s4k7zbP3cvJC5MU54"); ws.onopen = function(event) { // ws.send(JSON.stringify({'podNs':podNs, 'podName':podName, 'containerName':containerName, 'token':'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImFkbWluIiwiUGFzc3dvcmQiOiIxMjMiLCJleHAiOjE1NTQxMjI2MjQsImlzcyI6Ims4cy13ZWJzaGVsbCJ9.93CNsR7QeifmnV-MmPOYqp9n1jNaceLfyWujDSSFdMM'})) console.log("onopen") diff --git a/docker-compose.yaml b/docker-compose.yaml index 255cc8d..bac5708 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -13,6 +13,7 @@ services: - ./configs/inside_finup.crt:/go/src/k8s-webshell/configs/inside_finup.crt - ./configs/inside_finup.key:/go/src/k8s-webshell/configs/inside_finup.key - ./pkg:/go/src/k8s-webshell/pkg + - ./middleware:/go/src/k8s-webshell/middleware - ./routers:/go/src/k8s-webshell/routers - ./vendor:/go/src/k8s-webshell/vendor - ./bin:/go/bin