diff --git a/src/apps.js b/src/apps.js index 4f958439e..4139edb07 100644 --- a/src/apps.js +++ b/src/apps.js @@ -425,7 +425,7 @@ function removeInternalFields(app) { 'id', 'appStoreId', 'installationState', 'error', 'runState', 'health', 'taskId', 'location', 'domain', 'fqdn', 'mailboxName', 'accessRestriction', 'manifest', 'portBindings', 'iconUrl', 'memoryLimit', - 'sso', 'debugMode', 'robotsTxt', 'enableBackup', 'creationTime', 'updateTime', 'ts', 'tags', + 'sso', 'debugMode', 'reverseProxyConfig', 'enableBackup', 'creationTime', 'updateTime', 'ts', 'tags', 'label', 'alternateDomains', 'env', 'enableAutomaticUpdate', 'dataDir'); } @@ -730,7 +730,6 @@ function install(data, user, auditSource, callback) { memoryLimit = data.memoryLimit || 0, sso = 'sso' in data ? data.sso : null, debugMode = data.debugMode || null, - robotsTxt = data.robotsTxt || null, enableBackup = 'enableBackup' in data ? data.enableBackup : true, enableAutomaticUpdate = 'enableAutomaticUpdate' in data ? data.enableAutomaticUpdate : true, backupId = data.backupId || null, diff --git a/src/routes/apps.js b/src/routes/apps.js index dee2ea3a9..d2a0f652d 100644 --- a/src/routes/apps.js +++ b/src/routes/apps.js @@ -140,8 +140,6 @@ function installApp(req, res, next) { if (('debugMode' in data) && typeof data.debugMode !== 'object') return next(new HttpError(400, 'debugMode must be an object')); - if (data.robotsTxt && typeof data.robotsTxt !== 'string') return next(new HttpError(400, 'robotsTxt must be a string')); - if ('alternateDomains' in data) { if (!Array.isArray(data.alternateDomains)) return next(new HttpError(400, 'alternateDomains must be an array')); if (data.alternateDomains.some(function (d) { return (typeof d.domain !== 'string' || typeof d.subdomain !== 'string'); })) return next(new HttpError(400, 'alternateDomains array must contain objects with domain and subdomain strings'));