db378a0ee5
This change replaces the hard coded WSGI app creation with a pipeline of WSGI apps declared in a configuration file. Paste Deploy was used to create the pipeline since it is used by many other OpenStack projects and it is an active project with new contributors and supports Python 3. Dependency on Paste is localized so switching to another library would not be hard if OpenStack moves to another package in the future. Change-Id: I9a45f974c2c8c67a01748583639e6a6248003b85 Closes-Bug:#1551134
19 lines
686 B
INI
19 lines
686 B
INI
[pipeline:main]
|
|
pipeline = cors request_id authtoken api_v1
|
|
|
|
[app:api_v1]
|
|
paste.app_factory = magnum.api.app:app_factory
|
|
|
|
[filter:authtoken]
|
|
paste.filter_factory = magnum.api.middleware.auth_token:AuthTokenMiddleware.factory
|
|
|
|
[filter:request_id]
|
|
paste.filter_factory = oslo_middleware:RequestId.factory
|
|
|
|
[filter:cors]
|
|
paste.filter_factory = oslo_middleware.cors:filter_factory
|
|
oslo_config_project = magnum
|
|
latent_allow_methods = GET, PUT, POST, DELETE, PATCH
|
|
latent_allow_headers = X-Auth-Token, X-Identity-Status, X-Roles, X-Service-Catalog, X-User-Id, X-Tenant-Id, X-OpenStack-Request-ID
|
|
latent_expose_headers = X-Auth-Token, X-Subject-Token, X-Service-Token, X-OpenStack-Request-ID
|