1533e6d8b8
Corrects a typo where 'apiv1app' should be 'apiv2app' Change-Id: I4ef29f7539a572ed65422fd548e9718e86161b5f
82 lines
2.4 KiB
INI
82 lines
2.4 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.common.wsgi:app_factory
|
|
glance.app_factory = glance.api.v1.router:API
|
|
|
|
[app:apiv2app]
|
|
paste.app_factory = glance.common.wsgi:app_factory
|
|
glance.app_factory = glance.api.v2.router:API
|
|
|
|
[filter:versionnegotiation]
|
|
paste.filter_factory = glance.common.wsgi:filter_factory
|
|
glance.filter_factory = glance.api.middleware.version_negotiation:VersionNegotiationFilter
|
|
|
|
[filter:cache]
|
|
paste.filter_factory = glance.common.wsgi:filter_factory
|
|
glance.filter_factory = glance.api.middleware.cache:CacheFilter
|
|
|
|
[filter:cachemanage]
|
|
paste.filter_factory = glance.common.wsgi:filter_factory
|
|
glance.filter_factory = glance.api.middleware.cache_manage:CacheManageFilter
|
|
|
|
[filter:context]
|
|
paste.filter_factory = glance.common.wsgi:filter_factory
|
|
glance.filter_factory = glance.common.context:ContextMiddleware
|
|
|
|
[filter:unauthenticated-context]
|
|
paste.filter_factory = glance.common.wsgi:filter_factory
|
|
glance.filter_factory = glance.common.context:UnauthenticatedContextMiddleware
|
|
|
|
[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%
|