mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Use special bind path for panel
This commit is contained in:
@@ -586,12 +586,16 @@ var runWebAppServer = function () {
|
||||
// XXX Figure out a per-job way to specify bind location
|
||||
// (besides hardcoding the location for ADMIN_APP jobs).
|
||||
if (process.env.ADMIN_APP) {
|
||||
proxyConf = {
|
||||
bindHost: process.env.GALAXY_NAME,
|
||||
bindPathPrefix: "/" +
|
||||
var bindPathPrefix = "";
|
||||
if (process.env.GALAXY_APP !== "panel") {
|
||||
bindPathPrefix = "/" + bindPathPrefix +
|
||||
encodeURIComponent(
|
||||
process.env.GALAXY_APP
|
||||
).replace(/\./g, '_'),
|
||||
).replace(/\./g, '_');
|
||||
}
|
||||
proxyConf = {
|
||||
bindHost: process.env.GALAXY_NAME,
|
||||
bindPathPrefix: bindPathPrefix,
|
||||
requiresAuth: true
|
||||
};
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user