d33ce445d3
Implements blueprint cfg-global-object In glance.common.wsgi we have a paste_deploy_app() API which allows a ConfigOpts instance to be passed the the applications and filters constructed by PasteDeploy. Now that we're using a global object, we don't need this anymore Change-Id: I222d3c58308bc2f504cd802c0c8405d3baa2e49a
75 lines
2.1 KiB
INI
75 lines
2.1 KiB
INI
# Default minimal pipeline
|
|
[pipeline:glance-api]
|
|
pipeline = versionnegotiation unauthenticated-context rootapp
|
|
|
|
# Use the following pipeline for keystone auth
|
|
# i.e. in glance-api.conf:
|
|
# [paste_deploy]
|
|
# flavor = keystone
|
|
#
|
|
[pipeline:glance-api-keystone]
|
|
pipeline = versionnegotiation authtoken context rootapp
|
|
|
|
# Use the following pipeline to enable transparent caching of image files
|
|
# i.e. in glance-api.conf:
|
|
# [paste_deploy]
|
|
# flavor = caching
|
|
#
|
|
[pipeline:glance-api-caching]
|
|
pipeline = versionnegotiation unauthenticated-context cache rootapp
|
|
|
|
# Use the following pipeline for keystone auth with caching
|
|
# i.e. in glance-api.conf:
|
|
# [paste_deploy]
|
|
# flavor = keystone+caching
|
|
#
|
|
[pipeline:glance-api-keystone+caching]
|
|
pipeline = versionnegotiation authtoken context cache rootapp
|
|
|
|
# Use the following pipeline for keystone auth with cache management
|
|
# i.e. in glance-api.conf:
|
|
# [paste_deploy]
|
|
# flavor = keystone+cachemanagement
|
|
#
|
|
[pipeline:glance-api-keystone+cachemanagement]
|
|
pipeline = versionnegotiation authtoken context cache cachemanage rootapp
|
|
|
|
[composite:rootapp]
|
|
use = egg:Paste#urlmap
|
|
/: apiversions
|
|
/v1: apiv1app
|
|
/v2: apiv2app
|
|
|
|
[app:apiversions]
|
|
paste.app_factory = glance.api.versions:create_resource
|
|
|
|
[app:apiv1app]
|
|
paste.app_factory = glance.api.v1.router:API.factory
|
|
|
|
[app:apiv2app]
|
|
paste.app_factory = glance.api.v2.router:API.factory
|
|
|
|
[filter:versionnegotiation]
|
|
paste.filter_factory = glance.api.middleware.version_negotiation:VersionNegotiationFilter.factory
|
|
|
|
[filter:cache]
|
|
paste.filter_factory = glance.api.middleware.cache:CacheFilter.factory
|
|
|
|
[filter:cachemanage]
|
|
paste.filter_factory = glance.api.middleware.cache_manage:CacheManageFilter.factory
|
|
|
|
[filter:context]
|
|
paste.filter_factory = glance.common.context:ContextMiddleware.factory
|
|
|
|
[filter:unauthenticated-context]
|
|
paste.filter_factory = glance.common.context:UnauthenticatedContextMiddleware.factory
|
|
|
|
[filter:authtoken]
|
|
paste.filter_factory = keystone.middleware.auth_token:filter_factory
|
|
auth_host = 127.0.0.1
|
|
auth_port = 35357
|
|
auth_protocol = http
|
|
admin_tenant_name = %SERVICE_TENANT_NAME%
|
|
admin_user = %SERVICE_USER%
|
|
admin_password = %SERVICE_PASSWORD%
|