Unverified Commit 388fb17f authored by 老广's avatar 老广 Committed by GitHub

Merge pull request #117 from jumpserver/dev_beta

[Update] 修改连接koko的参数
parents b5665827 d1c2c372
...@@ -3,31 +3,11 @@ ...@@ -3,31 +3,11 @@
"target": "http://127.0.0.1:8080", "target": "http://127.0.0.1:8080",
"secure": false "secure": false
}, },
"/luna/i18n": { "/koko": {
"target": "http://127.0.0.1:5001",
"secure": false
},
"/socket.io/": {
"target": "http://127.0.0.1:5000", "target": "http://127.0.0.1:5000",
"secure": false, "secure": false,
"ws": true "ws": true
}, },
"/coco/": {
"target": "http://127.0.0.1:5000",
"secure:": false,
"ws": true
},
"/static": {
"target": "http://127.0.0.1:5000",
"secure:": false
},
"/rdp/socket.io/": {
"target": "http://localhost:9250",
"pathRewrite": {
"^/rdp": ""
},
"secure": false
},
"/media/": { "/media/": {
"target": "http://127.0.0.1:8080", "target": "http://127.0.0.1:8080",
"secure": false "secure": false
......
...@@ -41,7 +41,7 @@ export class ElementNavComponent implements OnInit { ...@@ -41,7 +41,7 @@ export class ElementNavComponent implements OnInit {
click(event) { click(event) {
switch (event) { switch (event) {
case 'ConnectSFTP': { case 'ConnectSFTP': {
window.open('/coco/elfinder/sftp/'); window.open('/koko/elfinder/sftp/');
break; break;
} }
case 'HideLeft': { case 'HideLeft': {
......
import {Component, OnInit, Input, ElementRef, ViewChild} from '@angular/core'; import {Component, OnInit, Input, ElementRef, ViewChild} from '@angular/core';
import {DataStore} from '@app/globals';
import {DomSanitizer} from '@angular/platform-browser'; import {DomSanitizer} from '@angular/platform-browser';
@Component({ @Component({
...@@ -16,7 +15,7 @@ export class ElementSftpComponent implements OnInit { ...@@ -16,7 +15,7 @@ export class ElementSftpComponent implements OnInit {
} }
ngOnInit() { ngOnInit() {
let _target = '/coco/elfinder/sftp/'; let _target = '/koko/elfinder/sftp/';
if (this.host) { if (this.host) {
// _target += 'f5857eee-c114-4564-af8f-96329c400a8a' + '/'; // _target += 'f5857eee-c114-4564-af8f-96329c400a8a' + '/';
_target += this.host.id + '/'; _target += this.host.id + '/';
......
...@@ -8,7 +8,7 @@ import {DataStore as _DataStore, Browser as _Browser, Video as _Video, Monitor a ...@@ -8,7 +8,7 @@ import {DataStore as _DataStore, Browser as _Browser, Video as _Video, Monitor a
const scheme = document.location.protocol === 'https:' ? 'wss' : 'ws'; const scheme = document.location.protocol === 'https:' ? 'wss' : 'ws';
const port = document.location.port ? ':' + document.location.port : ''; const port = document.location.port ? ':' + document.location.port : '';
const hostname = document.location.hostname; const hostname = document.location.hostname;
const wsURL = `${scheme}://${hostname}${port}/socket.io/`; const wsURL = `${scheme}://${hostname}${port}/koko/ws/`;
export let TermWS = null; export let TermWS = null;
export const emitter = new(EventEmitter); export const emitter = new(EventEmitter);
......
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