Skip to content

Commit

Permalink
Add cdn-de3 node
Browse files Browse the repository at this point in the history
  • Loading branch information
biodranik committed Jul 31, 2024
1 parent 84689e9 commit 9a9af6f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/servers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ export const SERVER = {
url: 'https://cdn-de2.organicmaps.app/',
dataVersions: [240613, 240702, 240723],
},
de3: {
// Hetzner Cloud (Nuremberg, Germany), 20TB/mo
url: 'https://cdn-de3.organicmaps.app/',
dataVersions: [240528, 240613, 240702, 240723],
},
us2: {
// Hetzner Cloud (Asburn, US East), 20TB/mo
url: 'https://cdn-us2.organicmaps.app/',
Expand Down Expand Up @@ -88,8 +93,8 @@ export async function getServersList(request: Request) {
break;
default:
// Every other continent + Tor networks.
servers = [SERVER.planet, SERVER.uk1, SERVER.nl1, SERVER.fi1, SERVER.de1, SERVER.de2].filter((server) =>
server.dataVersions.includes(dataVersion),
servers = [SERVER.planet, SERVER.uk1, SERVER.nl1, SERVER.fi1, SERVER.de1, SERVER.de2, SERVER.de3].filter(
(server) => server.dataVersions.includes(dataVersion),
);
// Only fallback to the archive in the US if nothing was found closer.
if (servers.length == 0 && SERVER.backblaze.dataVersions.includes(dataVersion)) {
Expand Down

0 comments on commit 9a9af6f

Please sign in to comment.