kopia lustrzana https://github.com/c9/core
Merge branch 'multi-domain-part-deux' of github.com:c9/newclient into multi-domain-part-deux
commit
bd76f5ab1a
|
@ -34,7 +34,8 @@ plugin.getBaseUrl = function(req, sourceBaseUrlPattern, targetBaseUrlPattern) {
|
|||
|| req.host
|
||||
|| req.url && req.url.replace(/^https?:\/\/([^/]*).*/, "$1")
|
||||
|| req;
|
||||
assert(!sourceHost.match(/\$DOMAIN/), "Please provide a valid request object");
|
||||
if (typeof sourceHost !== "string")
|
||||
throw new Error("Not a valid request object: " + req);
|
||||
|
||||
var sourceHostMatcher = sourceBaseUrlPattern
|
||||
.replace(/^https?:\/\//, "")
|
||||
|
|
|
@ -63,7 +63,7 @@ function main(argv, config, onLoaded) {
|
|||
.describe("dump", "dump config file as JSON")
|
||||
.describe("domains", "Primary and any secondary top-level domains to use (e.g, c9.io,c9.dev)")
|
||||
.describe("exclude", "Exclude specified service")
|
||||
.default("domains", inContainer && process.env.C9_HOSTNAME)
|
||||
.default("domains", inContainer && process.env.C9_HOSTNAME || process.env.C9_DOMAINS)
|
||||
.boolean("help")
|
||||
.describe("help", "Show command line options.");
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue