Add new Hetzner server in US East

This commit is contained in:
Roman Tsisyk 2021-12-12 18:16:51 +03:00 committed by Alexander Borsuk
parent 604c0b747f
commit 44b314e669

View file

@ -7,6 +7,8 @@ const SERVER = {
planet: 'https://cdn.organicmaps.app/', // Hetzner BareMetal (Falkenstein, Germany) unmetered
fi1: 'https://cdn-fi1.organicmaps.app/', // Hetzner Cloud (Helsinki, Finland), 20TB/mo
de1: 'https://cdn-eu2.organicmaps.app/', // Hetzner Cloud (Falkenstein, Germany), 20TB/mo
us2: 'https://cdn-us2.organicmaps.app/', // Hetzner Cloud (Asburn, US East), 20TB/mo
};
// Main entry point.
@ -53,7 +55,7 @@ async function handleRequest(request: Request) {
case 'NA': // North America
case 'SA': // South America
case 'OC': // Oceania
servers = [SERVER.backblaze, SERVER.uk1, SERVER.nl1, SERVER.planet];
servers = [SERVER.backblaze, SERVER.us2, SERVER.uk1, SERVER.nl1, SERVER.planet];
break;
default: // Every other continent + Tor networks.
servers = [SERVER.planet, SERVER.uk1, SERVER.nl1, SERVER.fi1, SERVER.de1];