kopia lustrzana https://github.com/c9/core
Work on multi-domain support in IDE and apps-proxy
rodzic
959d6c275d
commit
15742463d0
|
@ -54,6 +54,8 @@ plugin.getBaseUrl = function(req, sourceBaseUrlPattern, targetBaseUrlPattern) {
|
|||
|
||||
if (targetHost.match(/^(ide|vfs)./) && !targetBaseUrlPattern)
|
||||
errorLogger.log(new Error("Warning: no targetBaseUrlPattern specified, will stay at " + targetHost), { sourceBaseUrlPattern: sourceBaseUrlPattern });
|
||||
if (targetHost.match(/^(ide|vfs)./))
|
||||
console.trace("Warning: possibly incorrect baseUrl constructed, with 'ide.' in the hostname: " + targetHost);
|
||||
return replaceDomain(targetBaseUrlPattern || sourceBaseUrlPattern, targetHost)
|
||||
.replace(/\/$/, "");
|
||||
};
|
||||
|
|
Ładowanie…
Reference in New Issue