~openstack-charmers/charms/precise/glance/ceilometer-support

« back to all changes in this revision

Viewing changes to templates/folsom/glance-api-paste.ini

  • Committer: James Page
  • Date: 2013-10-15 08:33:43 UTC
  • mfrom: (29.2.200 glance)
  • Revision ID: james.page@canonical.com-20131015083343-8y6lee574knme3n4
Merge of python-redux and havana support

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Use this pipeline for no auth or image caching - DEFAULT
 
2
[pipeline:glance-api]
 
3
pipeline = versionnegotiation unauthenticated-context rootapp
 
4
 
 
5
# Use this pipeline for image caching and no auth
 
6
[pipeline:glance-api-caching]
 
7
pipeline = versionnegotiation unauthenticated-context cache rootapp
 
8
 
 
9
# Use this pipeline for caching w/ management interface but no auth
 
10
[pipeline:glance-api-cachemanagement]
 
11
pipeline = versionnegotiation unauthenticated-context cache cachemanage rootapp
 
12
 
 
13
# Use this pipeline for keystone auth
 
14
[pipeline:glance-api-keystone]
 
15
pipeline = versionnegotiation authtoken context rootapp
 
16
 
 
17
# Use this pipeline for keystone auth with image caching
 
18
[pipeline:glance-api-keystone+caching]
 
19
pipeline = versionnegotiation authtoken context cache rootapp
 
20
 
 
21
# Use this pipeline for keystone auth with caching and cache management
 
22
[pipeline:glance-api-keystone+cachemanagement]
 
23
pipeline = versionnegotiation authtoken context cache cachemanage rootapp
 
24
 
 
25
[composite:rootapp]
 
26
paste.composite_factory = glance.api:root_app_factory
 
27
/: apiversions
 
28
/v1: apiv1app
 
29
/v2: apiv2app
 
30
 
 
31
[app:apiversions]
 
32
paste.app_factory = glance.api.versions:create_resource
 
33
 
 
34
[app:apiv1app]
 
35
paste.app_factory = glance.api.v1.router:API.factory
 
36
 
 
37
[app:apiv2app]
 
38
paste.app_factory = glance.api.v2.router:API.factory
 
39
 
 
40
[filter:versionnegotiation]
 
41
paste.filter_factory = glance.api.middleware.version_negotiation:VersionNegotiationFilter.factory
 
42
 
 
43
[filter:cache]
 
44
paste.filter_factory = glance.api.middleware.cache:CacheFilter.factory
 
45
 
 
46
[filter:cachemanage]
 
47
paste.filter_factory = glance.api.middleware.cache_manage:CacheManageFilter.factory
 
48
 
 
49
[filter:context]
 
50
paste.filter_factory = glance.api.middleware.context:ContextMiddleware.factory
 
51
 
 
52
[filter:unauthenticated-context]
 
53
paste.filter_factory = glance.api.middleware.context:UnauthenticatedContextMiddleware.factory
 
54
 
 
55
[filter:authtoken]
 
56
paste.filter_factory = keystone.middleware.auth_token:filter_factory
 
57
delay_auth_decision = true
 
58
service_protocol = {{ service_protocol }}
 
59
service_host = {{ service_host }}
 
60
service_port = {{ service_port }}
 
61
auth_host = {{ auth_host }}
 
62
auth_port = {{ auth_port }}
 
63
auth_protocol = {{ auth_protocol }}
 
64
auth_uri = http://{{ service_host }}:{{ service_port }}/
 
65
admin_tenant_name = {{ admin_tenant_name }}
 
66
admin_user = {{ admin_user }}
 
67
admin_password = {{ admin_password }}
 
68
admin_token = {{ admin_token }}