2 # Copyright 2020 Huawei Technologies Co., Ltd.
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
8 # http://www.apache.org/licenses/LICENSE-2.0
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.
19 # [Server Configurations]
21 server_address = os.environ.get('LISTEN_IP')
23 # [SSL Configurations]
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")
35 # [Service Configurations]
36 api_gateway = os.environ.get("API_GATEWAY", "apigw.mep.org")
37 Obj_Det = os.environ.get("OBJ_DETECTION", "objdetection")
40 detection_url = "http://" + api_gateway + "/" + Obj_Det