forked from juvvadi/keystone
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating example glance paste config.
The glance config has gone through a number of changes since the sample paste files were added to keystone: - Add generic PasteDeploy app and filter factories [openstack/glance@ba44d1c3] - Split out paste deployment config from the core glance *.conf files into corresponding *-paste.ini files [openstack/glance@14593a3b] [openstack/glance@5835b30c] Updating samples to conform to latest version supported by glance. Change-Id: I52bcdfd1760f6f844e0a44dabe3294886bb7aafd
- Loading branch information
Eoghan Glynn
committed
Jan 25, 2012
1 parent
b1581a1
commit 9e9e7f0
Showing
5 changed files
with
105 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
#[pipeline:glance-api] | ||
#pipeline = versionnegotiation authtoken context apiv1app | ||
|
||
# Default minimal pipeline | ||
[pipeline:glance-api] | ||
pipeline = versionnegotiation context apiv1app | ||
|
||
# Use the following pipeline for keystone auth | ||
# i.e. in glance-api.conf: | ||
# [paste_deploy] | ||
# flavor = keystone | ||
# | ||
[pipeline:glance-api-keystone] | ||
pipeline = versionnegotiation authtoken auth-context apiv1app | ||
|
||
#[pipeline:versions] | ||
#pipeline = versionsapp | ||
|
||
#[app:versionsapp] | ||
#paste.app_factory = glance.api.versions:app_factory | ||
|
||
#[app:apiv1app] | ||
#paste.app_factory = glance.api.v1:app_factory | ||
|
||
[app:apiv1app] | ||
paste.app_factory = glance.common.wsgi:app_factory | ||
glance.app_factory = glance.api.v1.router:API | ||
|
||
#[filter:versionnegotiation] | ||
#paste.filter_factory = glance.api.middleware.version_negotiation:filter_factory | ||
|
||
[filter:versionnegotiation] | ||
paste.filter_factory = glance.common.wsgi:filter_factory | ||
glance.filter_factory = glance.api.middleware.version_negotiation:VersionNegotiationFilter | ||
|
||
#[filter:imagecache] | ||
#paste.filter_factory = glance.api.middleware.image_cache:filter_factory | ||
|
||
#[filter:context] | ||
#paste.filter_factory = glance.common.context:filter_factory | ||
|
||
[filter:context] | ||
paste.filter_factory = glance.common.wsgi:filter_factory | ||
glance.filter_factory = glance.common.context:ContextMiddleware | ||
|
||
[filter:authtoken] | ||
paste.filter_factory = keystone.middleware.auth_token:filter_factory | ||
service_protocol = http | ||
service_host = 127.0.0.1 | ||
service_port = 5000 | ||
auth_host = 127.0.0.1 | ||
auth_port = 35357 | ||
auth_protocol = http | ||
auth_uri = http://127.0.0.1:5000/ | ||
admin_token = 999888777666 | ||
auth_timeout = 30 | ||
|
||
[filter:auth-context] | ||
paste.filter_factory = glance.common.wsgi:filter_factory | ||
glance.filter_factory = keystone.middleware.glance_auth_token:KeystoneContextMiddleware |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Default minimal pipeline | ||
[pipeline:glance-registry] | ||
pipeline = context registryapp | ||
|
||
# Use the following pipeline for keystone auth | ||
# i.e. in glance-registry.conf: | ||
# [paste_deploy] | ||
# flavor = keystone | ||
# | ||
[pipeline:glance-registry-keystone] | ||
pipeline = authtoken auth-context registryapp | ||
|
||
[app:registryapp] | ||
paste.app_factory = glance.common.wsgi:app_factory | ||
glance.app_factory = glance.registry.api.v1:API | ||
|
||
[filter:context] | ||
context_class = glance.registry.context.RequestContext | ||
paste.filter_factory = glance.common.wsgi:filter_factory | ||
glance.filter_factory = glance.common.context:ContextMiddleware | ||
|
||
[filter:authtoken] | ||
paste.filter_factory = keystone.middleware.auth_token:filter_factory | ||
service_protocol = http | ||
service_host = 127.0.0.1 | ||
service_port = 5000 | ||
auth_host = 127.0.0.1 | ||
auth_port = 35357 | ||
auth_protocol = http | ||
auth_uri = http://127.0.0.1:5000/ | ||
admin_token = 999888777666 | ||
auth_timeout = 30 | ||
|
||
[filter:auth-context] | ||
context_class = glance.registry.context.RequestContext | ||
paste.filter_factory = glance.common.wsgi:filter_factory | ||
glance.filter_factory = keystone.middleware.glance_auth_token:KeystoneContextMiddleware |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters