mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-03 18:20:27 +00:00
Merge pull request #1108 from weaveworks/1099-fix-pipes-prefix-check
Fixes pipes working under a url path
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user