Commit c25b0c63 authored by Łukasz Nowak's avatar Łukasz Nowak

slapos_web_frontend_selector: Adapt to new naming approach

There is no reason to name regions so explicitly (like France or US), just
use generic and understandable region name (like Europe or North America).

Chinese endpoints are named via their operating telecoms, as this is like
region (latency, speed).
parent 4ec0fc4f
...@@ -5,33 +5,33 @@ ...@@ -5,33 +5,33 @@
var promise_list = [], var promise_list = [],
relative_url_path = "/app", relative_url_path = "/app",
test_url_list = [ test_url_list = [
{ name : 'France-O', { name : 'Europe 1',
testurl: "http://demoapp3.erp5.cn/WebSite_getTestFrontendResponse", testurl: "http://demoapp-eu1.erp5.cn/WebSite_getTestFrontendResponse",
redirect: "http://demoapp3.erp5.cn" + relative_url_path }, redirect: "http://demoapp-eu1.erp5.cn" + relative_url_path },
{ name : 'France-I', { name : 'Europe 2',
testurl: "http://demoapp6.erp5.cn/WebSite_getTestFrontendResponse", testurl: "http://demoapp-eu1.erp5.cn/WebSite_getTestFrontendResponse",
redirect: "http://demoapp6.erp5.cn" + relative_url_path }, redirect: "http://demoapp-eu2.erp5.cn" + relative_url_path },
{ name : 'US-West-A', { name : 'North America 1',
testurl: "http://demoapp7.erp5.cn/WebSite_getTestFrontendResponse", testurl: "http://demoapp-na1.erp5.cn/WebSite_getTestFrontendResponse",
redirect: "http://demoapp7.erp5.cn" + relative_url_path }, redirect: "http://demoapp-na1.erp5.cn" + relative_url_path },
{ name : 'Canada', { name : 'North America 2',
testurl: "http://demoapp12.erp5.cn/WebSite_getTestFrontendResponse", testurl: "http://demoapp-na2.erp5.cn/WebSite_getTestFrontendResponse",
redirect: "http://demoapp12.erp5.cn" + relative_url_path }, redirect: "http://demoapp-na2.erp5.cn" + relative_url_path },
{ name : 'China-CT', { name : 'China CT',
testurl: "http://demoapp26.erp5.cn/WebSite_getTestFrontendResponse", testurl: "http://demoapp-ct1.erp5.cn/WebSite_getTestFrontendResponse",
redirect: "http://demoapp26.erp5.cn" + relative_url_path }, redirect: "http://demoapp-ct1.erp5.cn" + relative_url_path },
{ name : 'China-CNC', { name : 'China CU',
testurl: "http://demoapp27.erp5.cn/WebSite_getTestFrontendResponse", testurl: "http://demoapp-cu1.erp5.cn/WebSite_getTestFrontendResponse",
redirect: "http://demoapp27.erp5.cn" + relative_url_path }, redirect: "http://demoapp-cu1.erp5.cn" + relative_url_path },
{ name : 'China-CM', { name : 'China CM',
testurl: "http://demoapp28.erp5.cn/WebSite_getTestFrontendResponse", testurl: "http://demoapp-cm1.erp5.cn/WebSite_getTestFrontendResponse",
redirect: "http://demoapp28.erp5.cn" + relative_url_path }, redirect: "http://demoapp-cm1.erp5.cn" + relative_url_path },
{ name : 'Japan-AWS-001', { name : 'Asia 1',
testurl: "http://demoapp29.erp5.cn/WebSite_getTestFrontendResponse", testurl: "http://demoapp-as1.erp5.cn/WebSite_getTestFrontendResponse",
redirect: "http://demoapp29.erp5.cn" + relative_url_path }, redirect: "http://demoapp-as1.erp5.cn" + relative_url_path },
{ name : 'Japan-AWS-002', { name : 'Asia 2',
testurl: "http://demoapp30.erp5.cn/WebSite_getTestFrontendResponse", testurl: "http://demoapp-as2.erp5.cn/WebSite_getTestFrontendResponse",
redirect: "http://demoapp30.erp5.cn" + relative_url_path } redirect: "http://demoapp-as2.erp5.cn" + relative_url_path }
]; ];
function ajax(param) { function ajax(param) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment