diff --git a/etc/trove/api-paste.ini b/etc/trove/api-paste.ini index 5851c0fdce..f6b8a85aec 100644 --- a/etc/trove/api-paste.ini +++ b/etc/trove/api-paste.ini @@ -1,6 +1,7 @@ [composite:trove] use = call:trove.common.wsgi:versioned_urlmap /: versions +/healthcheck: healthcheck /v1.0: troveapi [app:versions] @@ -42,5 +43,10 @@ paste.app_factory = trove.common.api:app_factory [filter: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] use = egg:oslo.middleware#http_proxy_to_wsgi diff --git a/releasenotes/notes/healthcheck-middleware-670a667bfb245123.yaml b/releasenotes/notes/healthcheck-middleware-670a667bfb245123.yaml new file mode 100644 index 0000000000..ae368e6cfb --- /dev/null +++ b/releasenotes/notes/healthcheck-middleware-670a667bfb245123.yaml @@ -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. diff --git a/tools/trove-config-generator.conf b/tools/trove-config-generator.conf index 6ba2c9d28c..da4fb3e41d 100644 --- a/tools/trove-config-generator.conf +++ b/tools/trove-config-generator.conf @@ -4,7 +4,9 @@ wrap_width = 79 namespace = trove.config namespace = oslo.db 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.policy namespace = osprofiler