1 # 2 # Copyright 2016-2017 FUJITSU LIMITED 3 # 4 # Licensed under the Apache License, Version 2.0 (the "License"); 5 # you may not use this file except in compliance with the License. 6 # You may obtain a copy of the License at 7 # 8 # http://www.apache.org/licenses/LICENSE-2.0 9 # 10 # Unless required by applicable law or agreed to in writing, software 11 # distributed under the License is distributed on an "AS IS" BASIS, 12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 13 # implied. 14 # See the License for the specific language governing permissions and 15 # limitations under the License. 16 # 17 18 [DEFAULT] 19 name = main 20 21 [composite:main] 22 use = egg:Paste#urlmap 23 /: la_version 24 /healthcheck: la_healthcheck 25 /v2.0: la_api_v2 26 /v3.0: la_api_v3 27 28 [pipeline:la_version] 29 pipeline = error_trap versionapp 30 31 [pipeline:la_healthcheck] 32 pipeline = error_trap healthcheckapp 33 34 [pipeline:la_api_v2] 35 pipeline = error_trap request_id auth api_v2_app 36 37 [pipeline:la_api_v3] 38 pipeline = error_trap request_id auth api_v3_app 39 40 [app:versionapp] 41 paste.app_factory = monasca_log_api.app.api:create_version_app 42 43 [app:healthcheckapp] 44 paste.app_factory = monasca_log_api.app.api:create_healthcheck_app 45 46 [app:api_v2_app] 47 paste.app_factory = monasca_log_api.app.api:create_api_app 48 set api_version=v2.0 49 50 [app:api_v3_app] 51 paste.app_factory = monasca_log_api.app.api:create_api_app 52 set api_version=v3.0 53 54 [filter:auth] 55 paste.filter_factory = keystonemiddleware.auth_token:filter_factory 56 57 [filter:request_id] 58 paste.filter_factory = oslo_middleware.request_id:RequestId.factory 59 60 # NOTE(trebskit) this is optional 61 # insert this into either pipeline to get some WSGI environment debug output 62 [filter:debug] 63 paste.filter_factory = oslo_middleware.debug:Debug.factory 64 65 [filter:error_trap] 66 paste.filter_factory = oslo_middleware.catch_errors:CatchErrors.factory 67 68 [server:main] 69 use = egg:gunicorn#main 70 bind = 127.0.0.1:5607 71 workers = 9 72 worker-connections = 2000 73 worker-class = eventlet 74 timeout = 30 75 backlog = 2048 76 keepalive = 2 77 proc_name = monasca-log-api 78 loglevel = DEBUG