Examples for Heimdall Discovery Settings

From DiscoverySettings.yaml (heimdall/DiscoverySettings.schema)

---
rules:
  - description: Rule for `cleo` in ID
    match:
      host:
        exact: cleo.staging.botmd.id

    settings:
      hippocrates:
        region: id
        gql_endpoint: https://hippocrates.staging.botmd.id/gql

      login:
        url: https://login.staging.botmd.id

      care:
        language: id
        clinic_domain_regex: '^\/id\/(?<domain>\w+)(?:\/.*)?$'

    enabled: true
  #end cleo ID rule

  - description: Matches any `botmd.io` sub-domains and paths starting with `/hello/`
    match:
      host:
        regex: '^.+\.botmd\.io$'

      path:
        regex: '^\/hello\/\w+$'

    settings: {}

  - description: Default rule assuming SG endpoints.
    match:
      all: true

    settings:
      hippocrates:
        region: sg
        gql_endpoint: https://hippocrates.staging.botmd.io/gql

      login:
        url: https://login.staging.botmd.io

    enabled: true
  #end default rule
#end rules


[Main Page] [Schema Documentation] [Raw Schema] [JSON Schema]