diff --git a/migrations/schema.sql b/migrations/schema.sql index c74e6aa3a..941984eca 100644 --- a/migrations/schema.sql +++ b/migrations/schema.sql @@ -80,8 +80,8 @@ CREATE TABLE IF NOT EXISTS apps( // the following fields do not belong here, they can be removed when we use a queue for apptask restoreConfigJson VARCHAR(256), // used to pass backupId to restore from to apptask - oldConfigJson TEXT, // used to pass old config for apptask (configure, restore) - updateConfigJson TEXT, // used to pass new config for apptask (update) + oldConfigJson TEXT, // used to pass old config to apptask (configure, restore) + updateConfigJson TEXT, // used to pass new config to apptask (update) FOREIGN KEY(domain) REFERENCES domains(domain), PRIMARY KEY(id)); diff --git a/src/apps.js b/src/apps.js index 5dc329622..085c50840 100644 --- a/src/apps.js +++ b/src/apps.js @@ -306,6 +306,7 @@ function getDuplicateErrorDetails(location, portBindings, error) { return new AppsError(AppsError.ALREADY_EXISTS); } +// app configs that is useful for 'archival' into the app backup config.json function getAppConfig(app) { return { manifest: app.manifest, @@ -315,7 +316,9 @@ function getAppConfig(app) { accessRestriction: app.accessRestriction, portBindings: app.portBindings, memoryLimit: app.memoryLimit, - xFrameOptions: app.xFrameOptions || 'SAMEORIGIN' + xFrameOptions: app.xFrameOptions || 'SAMEORIGIN', + robotsTxt: app.robotsTxt, + sso: app.sso }; }