RIC-769: Committing individual files rather than tar archive
[ric-plt/appmgr.git] / xapp_orchestrater / dev / xapp_onboarder / xapp_onboarder / server / settings.py
1 ################################################################################
2 #   Copyright (c) 2020 AT&T Intellectual Property.                             #
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 implied.   #
13 #   See the License for the specific language governing permissions and        #
14 #   limitations under the License.                                             #
15 ################################################################################
16
17 import os
18
19 # Flask settings
20 FLASK_PORT = os.environ.get('FLASK_PORT') or '8888'
21 FLASK_DEBUG = os.environ.get('FLASK_DEBUG') or True  # Do not use debug mode in production
22
23 # Flask-Restplus settings
24 RESTPLUS_SWAGGER_UI_DOC_EXPANSION = os.environ.get('RESTPLUS_SWAGGER_UI_DOC_EXPANSION') or 'list'
25 RESTPLUS_VALIDATE = os.environ.get('RESTPLUS_VALIDATE') or True
26 RESTPLUS_MASK_SWAGGER = os.environ.get('RESTPLUS_MASK_SWAGGER') or False
27 RESTPLUS_ERROR_404_HELP = os.environ.get('RESTPLUS_ERROR_404_HELP') or False
28
29 # xapp_onboarder settings
30 CHART_WORKSPACE_PATH = os.environ.get('CHART_WORKSPACE_PATH') or '/tmp/xapp_onboarder'
31 CHART_REPO_URL = os.environ.get('CHART_REPO_URL') or 'http://0.0.0.0:8080'
32 HTTP_TIME_OUT = int(os.environ.get('HTTP_TIME_OUT') or 10)
33 HELM_VERSION = os.environ.get('HELM_VERSION') or '2.12.3'
34 HTTP_RETRY = os.environ.get('HTTP_RETRY') or 3
35 ALLOW_REDEPLOY = os.environ.get('ALLOW_REDEPLOY') or True
36 CHART_WORKSPACE_SIZE = os.environ.get('CHART_WORKSPACE_SIZE') or '500 MB'
37 MOCK_TEST_MODE = os.environ.get('MOCK_TEST_MODE') or False
38 MOCK_TEST_HELM_REPO_TEMP_DIR = os.environ.get('MOCK_TEST_HELM_REPO_TEMP_DIR') or '/tmp/mock_helm_repo'
39
40