[composite:vitrage+noauth]
use = egg:Paste#urlmap
/ = vitrageversions_pipeline
/v1 = vitragev1_noauth_pipeline
/healthcheck = healthcheck

[composite:vitrage+keystone]
use = egg:Paste#urlmap
/ = vitrageversions_pipeline
/v1 = vitrage_event_pipline
/healthcheck = healthcheck

[composite:vitrage+keycloak]
use = egg:Paste#urlmap
/ = vitrageversions_pipeline
/v1 = vitragev1_keycloak_pipeline
/healthcheck = healthcheck

[app:healthcheck]
use = egg:oslo.middleware#healthcheck
backends = disable_by_file
disable_by_file_path = /var/run/vitrage/healthcheck_disable
oslo_config_project = vitrage

[pipeline:vitrageversions_pipeline]
pipeline = cors http_proxy_to_wsgi vitrageversions

[app:vitrageversions]
paste.app_factory = vitrage.api.app:app_factory
root = vitrage.api.controllers.root.VersionsController

[pipeline:vitragev1_noauth_pipeline]
pipeline = cors http_proxy_to_wsgi request_id osprofiler vitragev1

[pipeline:vitrage_event_pipline]
pipeline = cors http_proxy_to_wsgi request_id osprofiler basic_and_keystone_auth vitragev1

[pipeline:vitragev1_keycloak_pipeline]
pipeline = cors http_proxy_to_wsgi request_id osprofiler keycloakauthtoken vitragev1

[app:vitragev1]
paste.app_factory = vitrage.api.app:app_factory
root = vitrage.api.controllers.v1.root.V1Controller

[filter:basic_and_keystone_auth]
paste.filter_factory = vitrage.middleware.basic_and_keystone_auth:filter_factory
oslo_config_project = vitrage

[filter:keycloakauthtoken]
paste.filter_factory = vitrage.middleware.keycloak:filter_factory
oslo_config_project = vitrage

[filter:request_id]
paste.filter_factory = oslo_middleware:RequestId.factory

[filter:cors]
paste.filter_factory = oslo_middleware.cors:filter_factory
oslo_config_project = vitrage

[filter:http_proxy_to_wsgi]
paste.filter_factory = oslo_middleware.http_proxy_to_wsgi:HTTPProxyToWSGI.factory
oslo_config_project = vitrage

[filter:osprofiler]
paste.filter_factory = osprofiler.web:WsgiMiddleware.factory
