Files
monasca-api/monasca_api/api/wsgi.py
Tomasz Trębski bff8cd27eb Adding WSGI support
Following commits adds possiblity to run monasca-api
with Apache2 (mod_wsgi).

Needed-By: Idcc181bbb19a68c622eca51dc9822bde9a91f6a9
Change-Id: Id07dcc249965d97644da9396b6d288255ffaab43
2017-03-07 17:56:54 +00:00

21 lines
744 B
Python

# Copyright 2017 FUJITSU LIMITED
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
# extremely simple way to setup of monasca-api
# with wsgi
from monasca_api.api import server
application = server.get_wsgi_app(config_base_path='/etc/monasca')