Skip to content

Commit

Permalink
[Maps] Disallow on-prem EMS when proxyElasticMapsServiceInMaps is tur…
Browse files Browse the repository at this point in the history
…ned on (#85049)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
  • Loading branch information
thomasneirynck and kibanamachine authored Dec 7, 2020
1 parent 46e8c54 commit 4a44804
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/plugins/maps_legacy/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,12 @@ export const configSchema = schema.object({
regionmap: regionmapSchema,
manifestServiceUrl: schema.string({ defaultValue: '' }),

emsUrl: schema.string({ defaultValue: '' }),
emsUrl: schema.conditional(
schema.siblingRef('proxyElasticMapsServiceInMaps'),
true,
schema.never(),
schema.string({ defaultValue: '' })
),

emsFileApiUrl: schema.string({ defaultValue: DEFAULT_EMS_FILE_API_URL }),
emsTileApiUrl: schema.string({ defaultValue: DEFAULT_EMS_TILE_API_URL }),
Expand Down

0 comments on commit 4a44804

Please sign in to comment.