ensure the webadmin domain is correctly figured

This commit is contained in:
Johannes Zellner 2016-06-29 14:59:09 +02:00
parent 49ea131234
commit a767f28dd8
1 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
function Cloudron(box) {
this._box = box;
this._isCustomDomain = box.domain === process.env.CUSTOM_DOMAIN;
this._isCustomDomain = box.domain === process.env.CUSTOM_DOMAIN || box.domain === process.env.SELFHOST_DOMAIN;
this._adminFqdn = this._isCustomDomain ? 'my.' + box.domain : 'my-' + box.domain;
this._origin = this._isCustomDomain ? 'https://my.' + box.domain : 'https://my-' + box.domain;