Jay Pipes | 8cafc80 | 2012-01-16 22:01:06 -0500 | [diff] [blame] | 1 | [pipeline:glance-api] |
| 2 | #pipeline = versionnegotiation context apiv1app |
| 3 | # NOTE: use the following pipeline for keystone |
| 4 | pipeline = versionnegotiation authtoken auth-context apiv1app |
| 5 | |
| 6 | # To enable Image Cache Management API replace pipeline with below: |
| 7 | # pipeline = versionnegotiation context imagecache apiv1app |
| 8 | # NOTE: use the following pipeline for keystone auth (with caching) |
| 9 | # pipeline = versionnegotiation authtoken auth-context imagecache apiv1app |
| 10 | |
| 11 | [app:apiv1app] |
| 12 | paste.app_factory = glance.common.wsgi:app_factory |
| 13 | glance.app_factory = glance.api.v1.router:API |
| 14 | |
| 15 | [filter:versionnegotiation] |
| 16 | paste.filter_factory = glance.common.wsgi:filter_factory |
| 17 | glance.filter_factory = glance.api.middleware.version_negotiation:VersionNegotiationFilter |
| 18 | |
| 19 | [filter:cache] |
| 20 | paste.filter_factory = glance.common.wsgi:filter_factory |
| 21 | glance.filter_factory = glance.api.middleware.cache:CacheFilter |
| 22 | |
| 23 | [filter:cachemanage] |
| 24 | paste.filter_factory = glance.common.wsgi:filter_factory |
| 25 | glance.filter_factory = glance.api.middleware.cache_manage:CacheManageFilter |
| 26 | |
| 27 | [filter:context] |
| 28 | paste.filter_factory = glance.common.wsgi:filter_factory |
| 29 | glance.filter_factory = glance.common.context:ContextMiddleware |
| 30 | |
| 31 | [filter:authtoken] |
| 32 | paste.filter_factory = keystone.middleware.auth_token:filter_factory |
| 33 | service_host = %KEYSTONE_SERVICE_HOST% |
| 34 | service_port = %KEYSTONE_SERVICE_PORT% |
| 35 | service_protocol = %KEYSTONE_SERVICE_PROTOCOL% |
| 36 | auth_host = %KEYSTONE_AUTH_HOST% |
| 37 | auth_port = %KEYSTONE_AUTH_PORT% |
| 38 | auth_protocol = %KEYSTONE_AUTH_PROTOCOL% |
| 39 | auth_uri = %KEYSTONE_SERVICE_PROTOCOL%://%KEYSTONE_SERVICE_HOST%:%KEYSTONE_SERVICE_PORT%/ |
| 40 | admin_token = %SERVICE_TOKEN% |
| 41 | |
| 42 | [filter:auth-context] |
| 43 | paste.filter_factory = glance.common.wsgi:filter_factory |
| 44 | glance.filter_factory = keystone.middleware.glance_auth_token:KeystoneContextMiddleware |