2012-08-30 10:50:39 -07:00
|
|
|
# Use this pipeline for no auth or image caching - DEFAULT
|
2012-01-13 00:31:00 +00:00
|
|
|
[pipeline:glance-api]
|
2016-06-08 11:59:09 +10:00
|
|
|
pipeline = cors healthcheck http_proxy_to_wsgi versionnegotiation osprofiler unauthenticated-context rootapp
|
2012-01-13 00:31:00 +00:00
|
|
|
|
2012-08-30 10:50:39 -07:00
|
|
|
# Use this pipeline for image caching and no auth
|
2012-01-17 11:39:06 +00:00
|
|
|
[pipeline:glance-api-caching]
|
2016-06-08 11:59:09 +10:00
|
|
|
pipeline = cors healthcheck http_proxy_to_wsgi versionnegotiation osprofiler unauthenticated-context cache rootapp
|
2012-01-17 11:39:06 +00:00
|
|
|
|
2012-08-30 10:50:39 -07:00
|
|
|
# Use this pipeline for caching w/ management interface but no auth
|
|
|
|
[pipeline:glance-api-cachemanagement]
|
2016-06-08 11:59:09 +10:00
|
|
|
pipeline = cors healthcheck http_proxy_to_wsgi versionnegotiation osprofiler unauthenticated-context cache cachemanage rootapp
|
2012-08-30 10:50:39 -07:00
|
|
|
|
|
|
|
# Use this pipeline for keystone auth
|
|
|
|
[pipeline:glance-api-keystone]
|
2016-06-08 11:59:09 +10:00
|
|
|
pipeline = cors healthcheck http_proxy_to_wsgi versionnegotiation osprofiler authtoken context rootapp
|
2012-08-30 10:50:39 -07:00
|
|
|
|
|
|
|
# Use this pipeline for keystone auth with image caching
|
2012-01-17 11:39:06 +00:00
|
|
|
[pipeline:glance-api-keystone+caching]
|
2016-06-08 11:59:09 +10:00
|
|
|
pipeline = cors healthcheck http_proxy_to_wsgi versionnegotiation osprofiler authtoken context cache rootapp
|
2012-01-17 11:39:06 +00:00
|
|
|
|
2012-08-30 10:50:39 -07:00
|
|
|
# Use this pipeline for keystone auth with caching and cache management
|
2012-01-17 11:39:06 +00:00
|
|
|
[pipeline:glance-api-keystone+cachemanagement]
|
2016-06-08 11:59:09 +10:00
|
|
|
pipeline = cors healthcheck http_proxy_to_wsgi versionnegotiation osprofiler authtoken context cache cachemanage rootapp
|
2012-03-27 19:18:50 -07:00
|
|
|
|
|
|
|
[composite:rootapp]
|
2012-08-31 17:53:32 +00:00
|
|
|
paste.composite_factory = glance.api:root_app_factory
|
2012-03-27 19:18:50 -07:00
|
|
|
/: apiversions
|
2012-05-22 13:23:44 -07:00
|
|
|
/v2: apiv2app
|
2012-03-27 19:18:50 -07:00
|
|
|
|
|
|
|
[app:apiversions]
|
|
|
|
paste.app_factory = glance.api.versions:create_resource
|
2012-01-13 00:31:00 +00:00
|
|
|
|
2012-05-03 17:52:25 -07:00
|
|
|
[app:apiv2app]
|
2012-05-29 08:51:12 +01:00
|
|
|
paste.app_factory = glance.api.v2.router:API.factory
|
2012-05-03 17:52:25 -07:00
|
|
|
|
2015-01-20 15:24:56 +00:00
|
|
|
[filter:healthcheck]
|
|
|
|
paste.filter_factory = oslo_middleware:Healthcheck.factory
|
|
|
|
backends = disable_by_file
|
|
|
|
disable_by_file_path = /etc/glance/healthcheck_disable
|
|
|
|
|
2012-01-13 00:31:00 +00:00
|
|
|
[filter:versionnegotiation]
|
2012-05-29 08:51:12 +01:00
|
|
|
paste.filter_factory = glance.api.middleware.version_negotiation:VersionNegotiationFilter.factory
|
2012-01-13 00:31:00 +00:00
|
|
|
|
|
|
|
[filter:cache]
|
2012-05-29 08:51:12 +01:00
|
|
|
paste.filter_factory = glance.api.middleware.cache:CacheFilter.factory
|
2012-01-13 00:31:00 +00:00
|
|
|
|
|
|
|
[filter:cachemanage]
|
2012-05-29 08:51:12 +01:00
|
|
|
paste.filter_factory = glance.api.middleware.cache_manage:CacheManageFilter.factory
|
2012-01-13 00:31:00 +00:00
|
|
|
|
|
|
|
[filter:context]
|
2012-07-09 08:05:28 -07:00
|
|
|
paste.filter_factory = glance.api.middleware.context:ContextMiddleware.factory
|
2012-01-13 00:31:00 +00:00
|
|
|
|
2012-05-01 15:41:06 -07:00
|
|
|
[filter:unauthenticated-context]
|
2012-07-09 08:05:28 -07:00
|
|
|
paste.filter_factory = glance.api.middleware.context:UnauthenticatedContextMiddleware.factory
|
2012-05-01 15:41:06 -07:00
|
|
|
|
2012-01-13 00:31:00 +00:00
|
|
|
[filter:authtoken]
|
2014-06-24 16:07:36 -05:00
|
|
|
paste.filter_factory = keystonemiddleware.auth_token:filter_factory
|
2012-08-16 17:07:43 -04:00
|
|
|
delay_auth_decision = true
|
2013-04-27 14:42:15 +02:00
|
|
|
|
|
|
|
[filter:gzip]
|
|
|
|
paste.filter_factory = glance.api.middleware.gzip:GzipMiddleware.factory
|
2014-07-04 20:10:11 +04:00
|
|
|
|
|
|
|
[filter:osprofiler]
|
|
|
|
paste.filter_factory = osprofiler.web:WsgiMiddleware.factory
|
2015-10-19 06:40:02 -07:00
|
|
|
|
|
|
|
[filter:cors]
|
|
|
|
paste.filter_factory = oslo_middleware.cors:filter_factory
|
|
|
|
oslo_config_project = glance
|
|
|
|
oslo_config_program = glance-api
|
2016-06-08 11:59:09 +10:00
|
|
|
|
|
|
|
[filter:http_proxy_to_wsgi]
|
|
|
|
paste.filter_factory = oslo_middleware:HTTPProxyToWSGI.factory
|