Skip to content

Commit

Permalink
Update the dashboard maps end point (#893)
Browse files Browse the repository at this point in the history
Currently the maps end point can't be accessed from India and China, we are going to update maps end point to the new one "maps.opensearch.org" for OpenSearch community users, which will solve the pain for opensource users from some region can't access to the existing one.

#777

Signed-off-by: Junqiu Lei <[email protected]>
  • Loading branch information
junqiu-lei authored Nov 1, 2021
1 parent 9037b61 commit cde8a78
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
12 changes: 5 additions & 7 deletions src/legacy/server/config/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,14 +202,12 @@ export default () =>
.default([]),
}).default(),
manifestServiceUrl: Joi.string().default('').allow(''),
opensearchManifestServiceUrl: Joi.string().default(
'https://maps.search-services.aws.a2z.com/v4/ap-southeast-1/manifest'
),
emsFileApiUrl: Joi.string().default('https://vectors.maps.search-services.aws.a2z.com'),
emsTileApiUrl: Joi.string().default('https://tiles.maps.search-services.aws.a2z.com'),
emsLandingPageUrl: Joi.string().default('https://maps.search-services.aws.a2z.com/v4'),
opensearchManifestServiceUrl: Joi.string().default('https://maps.opensearch.org/manifest'),
emsFileApiUrl: Joi.string().default('https://vectors.maps.opensearch.org'),
emsTileApiUrl: Joi.string().default('https://tiles.maps.opensearch.org'),
emsLandingPageUrl: Joi.string().default('https://maps.opensearch.org'),
emsFontLibraryUrl: Joi.string().default(
'https://tiles.maps.search-services.aws.a2z.com/fonts/{fontstack}/{range}.pbf'
'https://tiles.maps.opensearch.org/fonts/{fontstack}/{range}.pbf'
),
emsTileLayerId: Joi.object({
bright: Joi.string().default('road_map'),
Expand Down
10 changes: 5 additions & 5 deletions src/plugins/maps_legacy/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ export const configSchema = schema.object({
regionmap: regionmapSchema,
manifestServiceUrl: schema.string({ defaultValue: '' }),
opensearchManifestServiceUrl: schema.string({
defaultValue: 'https://maps.search-services.aws.a2z.com/v4/us-east-1/manifest',
defaultValue: 'https://maps.opensearch.org/manifest',
}),
emsFileApiUrl: schema.string({
defaultValue: 'https://vectors.maps.search-services.aws.a2z.com',
defaultValue: 'https://vectors.maps.opensearch.org',
}),
emsTileApiUrl: schema.string({ defaultValue: 'https://tiles.maps.search-services.aws.a2z.com' }),
emsLandingPageUrl: schema.string({ defaultValue: 'https://maps.search-services.aws.a2z.com/v4' }),
emsTileApiUrl: schema.string({ defaultValue: 'https://tiles.maps.opensearch.org' }),
emsLandingPageUrl: schema.string({ defaultValue: 'https://maps.opensearch.org' }),
emsFontLibraryUrl: schema.string({
defaultValue: 'https://tiles.maps.search-services.aws.a2z.com/fonts/{fontstack}/{range}.pbf',
defaultValue: 'https://tiles.maps.opensearch.org/fonts/{fontstack}/{range}.pbf',
}),
emsTileLayerId: schema.object({
bright: schema.string({ defaultValue: 'road_map' }),
Expand Down

0 comments on commit cde8a78

Please sign in to comment.