diff --git a/cloudron.js b/cloudron.js index 7b212e4..b2f9908 100644 --- a/cloudron.js +++ b/cloudron.js @@ -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; };