diff --git a/etc/cloudkitty/api_paste.ini b/etc/cloudkitty/api_paste.ini index 0ff20277..8ae1e68f 100644 --- a/etc/cloudkitty/api_paste.ini +++ b/etc/cloudkitty/api_paste.ini @@ -1,14 +1,14 @@ [pipeline:cloudkitty+noauth] -pipeline = cors http_proxy_to_wsgi request_id ck_api +pipeline = cors healthcheck http_proxy_to_wsgi request_id ck_api [pipeline:cloudkitty+keystone] -pipeline = cors http_proxy_to_wsgi request_id authtoken ck_api +pipeline = cors healthcheck http_proxy_to_wsgi request_id authtoken ck_api [app:ck_api] paste.app_factory = cloudkitty.api.app:app_factory [filter:authtoken] -acl_public_routes = /, /v1 +acl_public_routes = /, /v1, /healthcheck paste.filter_factory = cloudkitty.api.middleware:AuthTokenMiddleware.factory [filter:request_id] @@ -18,6 +18,11 @@ paste.filter_factory = oslo_middleware:RequestId.factory paste.filter_factory = oslo_middleware.cors:filter_factory oslo_config_project = cloudkitty +[filter:healthcheck] +paste.filter_factory = oslo_middleware:Healthcheck.factory +backends = disable_by_file +disable_by_file_path = /etc/cloudkitty/healthcheck_disable + [filter:http_proxy_to_wsgi] paste.filter_factory = oslo_middleware.http_proxy_to_wsgi:HTTPProxyToWSGI.factory oslo_config_project = cloudkitty