Newer
Older
/*
Environment Variables outside of angular.
This is so we can alter the contents of this file outside of doing a rebuild and deploy.
A service in angular will capture this info and add it to a service
*/
(function (window) {
window.__env = window.__env || {};

Reid Givens
committed
switch (window.location.hostname) {

Jim Sheckard
committed
case 'archive-test.nrao.edu':
case 'data-test.nrao.edu':
case 'vlass-test.nrao.edu':
window.__env.configUrl = 'https://vlass-test.nrao.edu/VlassMngr/services/configuration';

Reid Givens
committed
break;
case 'archive-new.nrao.edu':

Jim Sheckard
committed
case 'data.nrao.edu':
case 'vlass.nrao.edu':

Reid Givens
committed
window.__env.configUrl = 'https://archive-new.nrao.edu/VlassMngr/services/configuration';
break;
case 'localhost':
window.__env.configUrl = 'http://localhost:8080/VlassMngr/services/configuration';
break;

Reid Givens
committed
default:
window.__env.configUrl = 'https://webtest.aoc.nrao.edu/VlassMngr/services/configuration';
break;
}

Reid Givens
committed
/**
* If you need to overwrite this for this server, use the following
*/
// window.__env.configUrl = 'https://webtest.aoc.nrao.edu/VlassMngr/services/configuration';