
Use the healthcheck middleware from oslo_middleware. This adds a new pipeline that depends if /etc/magnum/healthcheck_disable file exists. The healthcheck middleware is avalible under the /healthcheck URL. Return values: 200 OK (If the file does not exist) 503 DISABLED BY FILE (If file exists) Change-Id: I23179d5285831af12de7f392849c490d86a5682e
22 lines
609 B
INI
22 lines
609 B
INI
[pipeline:main]
|
|
pipeline = cors healthcheck request_id authtoken api_v1
|
|
|
|
[app:api_v1]
|
|
paste.app_factory = magnum.api.app:app_factory
|
|
|
|
[filter:authtoken]
|
|
acl_public_routes = /, /v1
|
|
paste.filter_factory = magnum.api.middleware.auth_token:AuthTokenMiddleware.factory
|
|
|
|
[filter:request_id]
|
|
paste.filter_factory = oslo_middleware:RequestId.factory
|
|
|
|
[filter:cors]
|
|
paste.filter_factory = oslo_middleware.cors:filter_factory
|
|
oslo_config_project = magnum
|
|
|
|
[filter:healthcheck]
|
|
paste.filter_factory = oslo_middleware:Healthcheck.factory
|
|
backends = disable_by_file
|
|
disable_by_file_path = /etc/magnum/healthcheck_disable
|