deb-sahara/etc/sahara/api-paste.ini
Michael Krotscheck 4e96378f33 Switched CORS configuration to use oslo_config
When cors middleware was moved into paste.ini, genconfig was not
updated to indicate that the configuration method had changed.
This breaks backwards-compatibility, however since the middleware
supports automatic oslo config detection via pastedeploy, it is
easily corrected.

This patch updates the api-paste.ini file to encourage CORS
middleware to draw its configuration from sahara.conf. It also
moves cors to the beginning of the middleware pipeline.

Change-Id: I4cff577aeff21286d0f9ce13142babec39db5e13
2015-10-20 11:02:58 -07:00

26 lines
687 B
INI

[pipeline:sahara]
pipeline = cors request_id acl auth_validator sahara_api
[composite:sahara_api]
use = egg:Paste#urlmap
/: sahara_apiv11
[app:sahara_apiv11]
paste.app_factory = sahara.api.middleware.sahara_middleware:Router.factory
[filter:cors]
paste.filter_factory = oslo_middleware.cors:filter_factory
oslo_config_project = sahara
[filter:request_id]
paste.filter_factory = oslo_middleware.request_id:RequestId.factory
[filter:acl]
paste.filter_factory = keystonemiddleware.auth_token:filter_factory
[filter:auth_validator]
paste.filter_factory = sahara.api.middleware.auth_valid:AuthValidator.factory
[filter:debug]
paste.filter_factory = oslo_middleware.debug:Debug.factory