Merge pull request #1108 from weaveworks/1099-fix-pipes-prefix-check

Fixes pipes working under a url path
This commit is contained in:
Simon
2016-03-03 16:21:32 +01:00
2 changed files with 2 additions and 1 deletions

View File

@@ -214,7 +214,7 @@ export function deletePipe(pipeId) {
}
export function getPipeStatus(pipeId) {
const url = `/api/pipe/${encodeURIComponent(pipeId)}/check`;
const url = `api/pipe/${encodeURIComponent(pipeId)}/check`;
reqwest({
method: 'GET',
url: url,

View File

@@ -107,6 +107,7 @@ var proxyRules = new HttpProxyRules({
});
var pathProxy = httpProxy.createProxy({ws: true});
pathProxy.on('error', function(err) { console.error('path proxy error', err); });
var pathProxyPort = port + 1;
const proxyPathServer = http.createServer(function(req, res) {
var target = proxyRules.match(req);