mirror of
https://github.com/portainer/portainer.git
synced 2025-08-02 20:35:25 +02:00
feat(config): add base url support EE-506 (#5999)
This commit is contained in:
parent
335f951e6b
commit
4aea5690a8
21 changed files with 71 additions and 55 deletions
|
@ -1,5 +1,6 @@
|
|||
import { Terminal } from 'xterm';
|
||||
import * as fit from 'xterm/lib/addons/fit/fit';
|
||||
import { baseHref } from '@/portainer/helpers/pathHelper';
|
||||
|
||||
export default class KubectlShellController {
|
||||
/* @ngInject */
|
||||
|
@ -91,7 +92,7 @@ export default class KubectlShellController {
|
|||
};
|
||||
|
||||
const wsProtocol = this.$window.location.protocol === 'https:' ? 'wss://' : 'ws://';
|
||||
const path = '/api/websocket/kubernetes-shell';
|
||||
const path = baseHref() + 'api/websocket/kubernetes-shell';
|
||||
const queryParams = Object.entries(params)
|
||||
.map(([k, v]) => `${k}=${v}`)
|
||||
.join('&');
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import angular from 'angular';
|
||||
import { Terminal } from 'xterm';
|
||||
import { baseHref } from '@/portainer/helpers/pathHelper';
|
||||
|
||||
class KubernetesApplicationConsoleController {
|
||||
/* @ngInject */
|
||||
|
@ -59,7 +60,8 @@ class KubernetesApplicationConsoleController {
|
|||
};
|
||||
|
||||
let url =
|
||||
window.location.href.split('#')[0] +
|
||||
window.location.origin +
|
||||
baseHref() +
|
||||
'api/websocket/pod?' +
|
||||
Object.keys(params)
|
||||
.map((k) => k + '=' + params[k])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue