remove support for manifest version 1

this is long untested by now
This commit is contained in:
Girish Ramakrishnan
2021-12-06 17:43:50 -08:00
parent 2415e1ca4b
commit 683ac9b16e
5 changed files with 56 additions and 70 deletions

View File

@@ -266,16 +266,15 @@ async function createSubcontainer(app, name, cmd, options) {
const manifest = app.manifest;
const exposedPorts = {}, dockerPortBindings = { };
const domain = app.fqdn;
const envPrefix = manifest.manifestVersion <= 1 ? '' : 'CLOUDRON_';
const stdEnv = [
'CLOUDRON=1',
'CLOUDRON_PROXY_IP=172.18.0.1',
`CLOUDRON_APP_HOSTNAME=${app.id}`,
`${envPrefix}WEBADMIN_ORIGIN=${settings.dashboardOrigin()}`,
`${envPrefix}API_ORIGIN=${settings.dashboardOrigin()}`,
`${envPrefix}APP_ORIGIN=https://${domain}`,
`${envPrefix}APP_DOMAIN=${domain}`
`CLOUDRON_WEBADMIN_ORIGIN=${settings.dashboardOrigin()}`,
`CLOUDRON_API_ORIGIN=${settings.dashboardOrigin()}`,
`CLOUDRON_APP_ORIGIN=https://${domain}`,
`CLOUDRON_APP_DOMAIN=${domain}`
];
const portEnv = [];