ROBO usecase: Obj Detection service base framework
[ealt-edge.git] / example-apps / ROBO / aPaaS / Obj_Detection_service / config.py
1 #
2 # Copyright 2020 Huawei Technologies Co., Ltd.
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 # [Server Configurations]
20 server_port = 9998
21 server_address = os.environ.get('LISTEN_IP')
22
23 # [SSL Configurations]
24 ssl_enabled = False
25 ssl_protocol = "TLSv1.2"
26 ssl_ciphers = ["TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256",
27                "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256",
28                "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384",
29                "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384"]
30 ssl_certfilepath = "/usr/app/ssl/server_tls.crt"
31 ssl_keyfilepath = "/usr/app/ssl/server_tls.key"
32 ssl_cacertpath = "/usr/app/ssl/ca.crt"
33 ssl_server_name = os.environ.get('SERVER_NAME', "ealtedge")
34
35 # [Service Configurations]
36 api_gateway = os.environ.get("API_GATEWAY", "apigw.mep.org")
37 obj_det = os.environ.get("OBJ_DETECTION", "objdetection")
38
39 # [Constants]
40 recognition_url = "http://" + api_gateway + "/" + obj_det