|
| 1 | +# Use this pipeline for no auth or image caching - DEFAULT |
| 2 | +[pipeline:glance-api] |
| 3 | +pipeline = cors healthcheck http_proxy_to_wsgi versionnegotiation osprofiler unauthenticated-context rootapp |
| 4 | + |
| 5 | +# Use this pipeline for image caching and no auth |
| 6 | +[pipeline:glance-api-caching] |
| 7 | +pipeline = cors healthcheck http_proxy_to_wsgi versionnegotiation osprofiler unauthenticated-context cache rootapp |
| 8 | + |
| 9 | +# Use this pipeline for caching w/ management interface but no auth |
| 10 | +[pipeline:glance-api-cachemanagement] |
| 11 | +pipeline = cors healthcheck http_proxy_to_wsgi versionnegotiation osprofiler unauthenticated-context cache cachemanage rootapp |
| 12 | + |
| 13 | +# Use this pipeline for keystone auth |
| 14 | +[pipeline:glance-api-keystone] |
| 15 | +pipeline = cors healthcheck http_proxy_to_wsgi versionnegotiation osprofiler authtoken context audit rootapp |
| 16 | + |
| 17 | +# Use this pipeline for keystone auth with image caching |
| 18 | +[pipeline:glance-api-keystone+caching] |
| 19 | +pipeline = cors healthcheck http_proxy_to_wsgi versionnegotiation osprofiler authtoken context cache audit rootapp |
| 20 | + |
| 21 | +# Use this pipeline for keystone auth with caching and cache management |
| 22 | +[pipeline:glance-api-keystone+cachemanagement] |
| 23 | +pipeline = cors healthcheck http_proxy_to_wsgi versionnegotiation osprofiler authtoken context cache cachemanage audit rootapp |
| 24 | + |
| 25 | +[composite:rootapp] |
| 26 | +paste.composite_factory = glance.api:root_app_factory |
| 27 | +/: apiversions |
| 28 | +/v2: apiv2app |
| 29 | + |
| 30 | +[app:apiversions] |
| 31 | +paste.app_factory = glance.api.versions:create_resource |
| 32 | + |
| 33 | +[app:apiv2app] |
| 34 | +paste.app_factory = glance.api.v2.router:API.factory |
| 35 | + |
| 36 | +[filter:healthcheck] |
| 37 | +paste.filter_factory = oslo_middleware:Healthcheck.factory |
| 38 | +backends = disable_by_file |
| 39 | +disable_by_file_path = /etc/glance/healthcheck_disable |
| 40 | + |
| 41 | +[filter:versionnegotiation] |
| 42 | +paste.filter_factory = glance.api.middleware.version_negotiation:VersionNegotiationFilter.factory |
| 43 | + |
| 44 | +[filter:cache] |
| 45 | +paste.filter_factory = glance.api.middleware.cache:CacheFilter.factory |
| 46 | + |
| 47 | +[filter:cachemanage] |
| 48 | +paste.filter_factory = glance.api.middleware.cache_manage:CacheManageFilter.factory |
| 49 | + |
| 50 | +[filter:context] |
| 51 | +paste.filter_factory = glance.api.middleware.context:ContextMiddleware.factory |
| 52 | + |
| 53 | +[filter:unauthenticated-context] |
| 54 | +paste.filter_factory = glance.api.middleware.context:UnauthenticatedContextMiddleware.factory |
| 55 | + |
| 56 | +[filter:authtoken] |
| 57 | +paste.filter_factory = keystonemiddleware.auth_token:filter_factory |
| 58 | +delay_auth_decision = true |
| 59 | + |
| 60 | +[filter:gzip] |
| 61 | +paste.filter_factory = glance.api.middleware.gzip:GzipMiddleware.factory |
| 62 | + |
| 63 | +[filter:osprofiler] |
| 64 | +paste.filter_factory = osprofiler.web:WsgiMiddleware.factory |
| 65 | + |
| 66 | +[filter:cors] |
| 67 | +paste.filter_factory = oslo_middleware.cors:filter_factory |
| 68 | +oslo_config_project = glance |
| 69 | +oslo_config_program = glance-api |
| 70 | + |
| 71 | +[filter:http_proxy_to_wsgi] |
| 72 | +paste.filter_factory = oslo_middleware:HTTPProxyToWSGI.factory |
| 73 | + |
| 74 | +[filter:audit] |
| 75 | +paste.filter_factory = keystonemiddleware.audit:filter_factory |
| 76 | +audit_map_file = /etc/glance/custom/glance_api_audit_map.conf |
| 77 | +use_oslo_messaging = false |
| 78 | +log_name = glance.audit |
0 commit comments