Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Customizing the tenant path

The tenant claim path can be set with customized using a JsonPath expression in the same way the roles-path and username-path can be set.

...

RabbitMQ and MongoDB configuration

For RabbitMQ and MongoDB the properties need to be set per tenant as well. This is an example of this configuration:


Code Block
languageyml
titleblueriq-dcm-maintenance-app.yml
  dcm:
    maintenance:
      app:        
        dlq:
          retry:
            delay: 2m
            max-retries: 0
          rabbitmq:
            tenants:
              blueriq:
                host: ${MULTITENANCY_HOST}
                port: 18030
                username: guest
                password: guest
                virtualHost: Blueriq
                queueNames:
                  - dcmEventsDlq
                  - dcmTasksEventsDlq
                  - dcmScheduledEventsDlq
                  - traceDlq
                  - timelineDlq
                  - dcmMaintenanceEventsDlq
                  - auditEventsDlq
                  - dcmListsEventsDlq
              everest:
                host: ${MULTITENANCY_HOST}
                port: 18030
                username: guest
                password: guest
                virtualHost: Everest
                queueNames:
                  - dcmEventsDlq
                  - dcmTasksEventsDlq
                  - dcmScheduledEventsDlq
                  - traceDlq
                  - timelineDlq
                  - dcmMaintenanceEventsDlq
                  - auditEventsDlq
                  - dcmListsEventsDlq
        case-engine:
          rabbitmq:
            tenants:
              blueriq:
                host: ${MULTITENANCY_HOST}
                port: 18030
                username: guest
                password: guest
                queueNames:
                  - dcmMaintenanceEventsQueue
                virtualHost: Blueriq
              everest:
                host: ${MULTITENANCY_HOST}
                port: 18030
                username: guest
                password: guest
                queueNames:
                  - dcmMaintenanceEventsQueue
                virtualHost: Everest

        mongodb:
          tenants:
            blueriq:
              host: ${MULTITENANCY_HOST}
              port: 18032
              database: bq_messages
            everest:
              host: ${MULTITENANCY_HOST}
              port: 18032
              database: ev_messages