Add a /healthcheck by default

This patch adds a /healthcheck URL by default, using oslo.middleware,
so that operators can use it to configure haproxy / monitoring.

Change-Id: Idf9a184f969e5f77de0c2f2a2b99c2931f5647e0
This commit is contained in:
Thomas Goirand 2020-06-16 12:47:30 +02:00
parent d2453d77b6
commit e8a71c83ad
1 changed files with 7 additions and 0 deletions

View File

@ -1,11 +1,13 @@
[composite:panko+noauth]
use = egg:Paste#urlmap
/ = pankoversions_pipeline
/healthcheck = healthcheck
/v2 = pankov2_noauth_pipeline
[composite:panko+keystone]
use = egg:Paste#urlmap
/ = pankoversions_pipeline
/healthcheck = healthcheck
/v2 = pankov2_keystone_pipeline
[pipeline:pankoversions_pipeline]
@ -43,3 +45,8 @@ oslo_config_project = panko
[filter:osprofiler]
paste.filter_factory = panko.profiler:WsgiMiddleware.factory
oslo_config_project = panko
[app:healthcheck]
paste.app_factory = oslo_middleware:Healthcheck.app_factory
backends = disable_by_file
disable_by_file_path = /etc/panko/healthcheck_disable