This commit is contained in:
parent
054c94ce47
commit
807644904b
|
@ -130,10 +130,11 @@ gulp.task('watch', ['build', 'watch-less'], function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
gulp.task('connect', ['watch'], function() {
|
gulp.task('connect', ['watch'], function() {
|
||||||
|
|
||||||
// lets disable unauthorised TLS issues with kube REST API
|
// lets disable unauthorised TLS issues with kube REST API
|
||||||
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
|
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
|
||||||
|
|
||||||
var kubeBase = process.env.KUBERNETES_MASTER || 'https://localhost:8443';
|
var kubeBase = process.env.KUBERNETES_MASTER || 'https://192.168.191.120:8443';
|
||||||
console.log("==== using KUBERNETES URL: " + kubeBase);
|
console.log("==== using KUBERNETES URL: " + kubeBase);
|
||||||
var kube = uri(urljoin(kubeBase, 'api'));
|
var kube = uri(urljoin(kubeBase, 'api'));
|
||||||
var kubeapis = uri(urljoin(kubeBase, 'apis'));
|
var kubeapis = uri(urljoin(kubeBase, 'apis'));
|
||||||
|
@ -173,7 +174,7 @@ gulp.task('connect', ['watch'], function() {
|
||||||
localProxies.push({
|
localProxies.push({
|
||||||
proto: "http",
|
proto: "http",
|
||||||
port: "8080",
|
port: "8080",
|
||||||
hostname: "localhost",
|
hostname: "localhost", //hostname:localhost
|
||||||
path: '/api/v1/proxy/namespaces/default/services/fabric8-forge',
|
path: '/api/v1/proxy/namespaces/default/services/fabric8-forge',
|
||||||
targetPath: "/"
|
targetPath: "/"
|
||||||
});
|
});
|
||||||
|
@ -248,8 +249,8 @@ gulp.task('connect', ['watch'], function() {
|
||||||
targetPath: '/hawtio/git'
|
targetPath: '/hawtio/git'
|
||||||
}, {
|
}, {
|
||||||
proto: "http",
|
proto: "http",
|
||||||
port: "8088",
|
port: "8080",
|
||||||
hostname: "192.168.0.110",
|
hostname: "127.0.0.1", //hostname:"127.0.0.1"
|
||||||
path: '/java/console/api',
|
path: '/java/console/api',
|
||||||
targetPath: "/"
|
targetPath: "/"
|
||||||
}];
|
}];
|
||||||
|
|
Loading…
Reference in New Issue