openstack-ansible-os_zun/templates/api-paste.ini.j2
Dmitriy Rabotyagov 4bf971f33d Update Zun api-paste
This also removes  CPUFilter from Zun filters as this filtering should be
done by Placement.

Change-Id: I3e463f7442ea6b17d73429e7e4dff2fb71217a30
2022-02-03 17:28:00 +00:00

30 lines
780 B
Django/Jinja

[composite:main]
use = egg:Paste#urlmap
/: zun_api_pipeline
/healthcheck: healthcheck
[pipeline:zun_api_pipeline]
pipeline = cors request_id osprofiler authtoken api_v1
[app:api_v1]
paste.app_factory = zun.api.app:app_factory
[filter:authtoken]
acl_public_routes = /, /v1
paste.filter_factory = zun.api.middleware.auth_token:AuthTokenMiddleware.factory
[filter:osprofiler]
paste.filter_factory = zun.common.profiler:WsgiMiddleware.factory
[filter:request_id]
paste.filter_factory = oslo_middleware:RequestId.factory
[filter:cors]
paste.filter_factory = oslo_middleware.cors:filter_factory
oslo_config_project = zun
[app:healthcheck]
paste.app_factory = oslo_middleware:Healthcheck.app_factory
backends = disable_by_file
disable_by_file_path = /etc/zun/healthcheck_disable