diff options
Diffstat (limited to 'etc/glance-api-paste.ini')
| -rw-r--r-- | etc/glance-api-paste.ini | 70 |
1 files changed, 50 insertions, 20 deletions
diff --git a/etc/glance-api-paste.ini b/etc/glance-api-paste.ini index 37a9943de..5b02f5073 100644 --- a/etc/glance-api-paste.ini +++ b/etc/glance-api-paste.ini @@ -1,26 +1,56 @@ -# Use this pipeline for no auth or image caching - DEFAULT -[pipeline:glance-api] -pipeline = cors healthcheck http_proxy_to_wsgi versionnegotiation osprofiler unauthenticated-context rootapp +# Use this composite for no auth or image caching - DEFAULT +[composite:glance-api] +paste.composite_factory = glance.api:root_app_factory +/: api +/healthcheck: healthcheck + +[pipeline:api] +pipeline = cors http_proxy_to_wsgi versionnegotiation osprofiler unauthenticated-context rootapp + +# Use this composite for image caching and no auth +[composite:glance-api-caching] +paste.composite_factory = glance.api:root_app_factory +/: api-caching +/healthcheck: healthcheck + +[pipeline:api-caching] +pipeline = cors http_proxy_to_wsgi versionnegotiation osprofiler unauthenticated-context cache rootapp + +# Use this composite for caching w/ management interface but no auth +[composite:glance-api-cachemanagement] +paste.composite_factory = glance.api:root_app_factory +/: api-cachemanagement +/healthcheck: healthcheck + +[pipeline:api-cachemanagement] +pipeline = cors http_proxy_to_wsgi versionnegotiation osprofiler unauthenticated-context cache cachemanage rootapp + +# Use this composite for keystone auth +[composite:glance-api-keystone] +paste.composite_factory = glance.api:root_app_factory +/: api-keystone +/healthcheck: healthcheck -# Use this pipeline for image caching and no auth -[pipeline:glance-api-caching] -pipeline = cors healthcheck http_proxy_to_wsgi versionnegotiation osprofiler unauthenticated-context cache rootapp +[pipeline:api-keystone] +pipeline = cors http_proxy_to_wsgi versionnegotiation osprofiler authtoken context rootapp -# Use this pipeline for caching w/ management interface but no auth -[pipeline:glance-api-cachemanagement] -pipeline = cors healthcheck http_proxy_to_wsgi versionnegotiation osprofiler unauthenticated-context cache cachemanage rootapp +# Use this composite for keystone auth with image caching +[composite:glance-api-keystone+caching] +paste.composite_factory = glance.api:root_app_factory +/: api-keystone+caching +/healthcheck: healthcheck -# Use this pipeline for keystone auth -[pipeline:glance-api-keystone] -pipeline = cors healthcheck http_proxy_to_wsgi versionnegotiation osprofiler authtoken context rootapp +[pipeline:api-keystone+caching] +pipeline = cors http_proxy_to_wsgi versionnegotiation osprofiler authtoken context cache rootapp -# Use this pipeline for keystone auth with image caching -[pipeline:glance-api-keystone+caching] -pipeline = cors healthcheck http_proxy_to_wsgi versionnegotiation osprofiler authtoken context cache rootapp +# Use this composite for keystone auth with caching and cache management +[composite:glance-api-keystone+cachemanagement] +paste.composite_factory = glance.api:root_app_factory +/: api-keystone+cachemanagement +/healthcheck: healthcheck -# Use this pipeline for keystone auth with caching and cache management -[pipeline:glance-api-keystone+cachemanagement] -pipeline = cors healthcheck http_proxy_to_wsgi versionnegotiation osprofiler authtoken context cache cachemanage rootapp +[pipeline:api-keystone+cachemanagement] +pipeline = cors http_proxy_to_wsgi versionnegotiation osprofiler authtoken context cache cachemanage rootapp [composite:rootapp] paste.composite_factory = glance.api:root_app_factory @@ -33,8 +63,8 @@ paste.app_factory = glance.api.versions:create_resource [app:apiv2app] paste.app_factory = glance.api.v2.router:API.factory -[filter:healthcheck] -paste.filter_factory = oslo_middleware:Healthcheck.factory +[app:healthcheck] +paste.app_factory = oslo_middleware:Healthcheck.app_factory backends = disable_by_file disable_by_file_path = /etc/glance/healthcheck_disable |
