Merge "Enable healthcheck middleware"

This commit is contained in:
Zuul 2024-02-27 06:11:49 +00:00 committed by Gerrit Code Review
commit 860772e1b0
3 changed files with 14 additions and 1 deletions

View File

@ -1,6 +1,7 @@
[composite:trove] [composite:trove]
use = call:trove.common.wsgi:versioned_urlmap use = call:trove.common.wsgi:versioned_urlmap
/: versions /: versions
/healthcheck: healthcheck
/v1.0: troveapi /v1.0: troveapi
[app:versions] [app:versions]
@ -42,5 +43,10 @@ paste.app_factory = trove.common.api:app_factory
[filter:debug] [filter:debug]
paste.filter_factory = trove.common.wsgi:Debug paste.filter_factory = trove.common.wsgi:Debug
[app:healthcheck]
paste.app_factory = oslo_middleware:Healthcheck.app_factory
backends = disable_by_file
disable_by_file_path = /etc/trove/healthcheck_disable
[filter:http_proxy_to_wsgi] [filter:http_proxy_to_wsgi]
use = egg:oslo.middleware#http_proxy_to_wsgi use = egg:oslo.middleware#http_proxy_to_wsgi

View File

@ -0,0 +1,5 @@
---
features:
- |
Now the healthcheck middleware from oslo.middleware library is enabled by
default. Edit ``api-paste.ini`` to disable the middlewware.

View File

@ -4,7 +4,9 @@ wrap_width = 79
namespace = trove.config namespace = trove.config
namespace = oslo.db namespace = oslo.db
namespace = oslo.messaging namespace = oslo.messaging
namespace = oslo.middleware namespace = oslo.middleware.cors
namespace = oslo.middleware.healthcheck
namespace = oslo.middleware.http_proxy_to_wsgi
namespace = oslo.log namespace = oslo.log
namespace = oslo.policy namespace = oslo.policy
namespace = osprofiler namespace = osprofiler