Get the cloudron vps provider from config

This commit is contained in:
Johannes Zellner
2015-12-29 11:24:34 +01:00
parent ef25f66107
commit 584b7790e4
2 changed files with 7 additions and 4 deletions

View File

@@ -17,6 +17,7 @@ exports = module.exports = {
TEST: process.env.BOX_ENV === 'test',
// convenience getters
provider: provider,
apiServerOrigin: apiServerOrigin,
webServerOrigin: webServerOrigin,
fqdn: fqdn,
@@ -82,6 +83,7 @@ function initConfig() {
data.ldapPort = 3002;
data.oauthProxyPort = 3003;
data.simpleAuthPort = 3004;
data.provider = 'caas';
if (exports.CLOUDRON) {
data.port = 3000;
@@ -194,3 +196,7 @@ function database() {
function isDev() {
return /dev/i.test(get('boxVersionsUrl'));
}
function provider() {
return get('provider');
}