Skip to content

Commit

Permalink
添加jwt 目录
Browse files Browse the repository at this point in the history
  • Loading branch information
richie committed Apr 3, 2019
1 parent f06841d commit d0e6581
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion doc/demo/client/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d0e6581

Please sign in to comment.