Revert "Improve custom domain check"

This reverts commit 12a9eda3cf.
This commit is contained in:
Girish Ramakrishnan 2016-09-12 17:11:03 -07:00
parent 383993ac7b
commit cab5c53c96

View File

@ -32,7 +32,7 @@ function Cloudron(box) {
}
Cloudron.prototype._setDomain = function (domain) {
this._isCustomDomain = !domain.match(/.*\.cloudron\.(me|eu|de)$/);
this._isCustomDomain = domain === process.env.CUSTOM_DOMAIN || domain === process.env.SELFHOST_DOMAIN;
this._adminFqdn = this._isCustomDomain ? 'my.' + domain : 'my-' + domain;
this._origin = this._isCustomDomain ? 'https://my.' + domain : 'https://my-' + domain;
};