"use strict";

var config;

var test = {
	authUrl:  "http://0.0.0.0:8000",
	database: {	
		port:  9200,
		host:  "http://127.0.0.1",
		index: "clerk"
	}
};

var staging = {
	authUrl:  "http://0.0.0.0:8000",
	database: {	
		port:  9200,
		host:  "http://127.0.0.1",
		index: "clerk"
	}
};

var production = {
	authUrl:  "http://0.0.0.0:8000",
	database: {	
		port:  9200,
		host:  "http://127.0.0.1",
		index: "clerk"
	}
};

/* istanbul ignore next */
switch(process.env.NODE_ENV) {
    case "test":
        config = test;
        break;
    case "staging":
        config = staging;
        break;
    case "prod":
        config = production;
        break;
    default:
		config = test;
}

module.exports = config;
@@ -72,34 +72,33 @@
 0%22,%0A%09database: %7B
-%09
 %0A
+
 %09%09port:  9200,%0A%09
@@ -169,42 +169,8 @@
 = %7B%0A
-%09authUrl:  %22http://0.0.0.0:8000%22,%0A
 %09dat
@@ -169,33 +169,32 @@
 = %7B%0A%09database: %7B
-%09
 %0A%09%09port:  9200,%0A
@@ -179,36 +179,35 @@
 ase: %7B%0A%09%09port:  
-9200
+443
 ,%0A%09%09host:  %22http
@@ -192,32 +192,58 @@
 :  443,%0A%09%09host: 
+ process.env.BONSAI_URL %7C%7C
  %22http://127.0.0
@@ -316,32 +316,32 @@
 /0.0.0.0:8000%22,%0A
+
 %09database: %7B%09%0A%09%09
@@ -336,17 +336,16 @@
 abase: %7B
-%09
 %0A%09%09port:
@@ -689,16 +689,17 @@
 xports = config;
+%0A

update config