Add a /healthcheck URL
This is useful for operators to setup haproxy and know that one of the API is alive. I've done such a patch on many other projects, and this is unifying all. Change-Id: I14214679849c1cd378c7487254761f1d4d73e10e
This commit is contained in:
parent
cbcdacac61
commit
0217e602aa
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user