remove support for manifest version 1
this is long untested by now
This commit is contained in:
@@ -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 = [];
|
||||
|
||||
Reference in New Issue
Block a user