4 #============LICENSE_START=======================================================
5 # ONAP : ccsdk distribution web
6 #================================================================================
7 # Copyright (C) 2020 highstreet technologies GmbH Intellectual Property.
9 #================================================================================
10 # Licensed under the Apache License, Version 2.0 (the "License");
11 # you may not use this file except in compliance with the License.
12 # You may obtain a copy of the License at
14 # http://www.apache.org/licenses/LICENSE-2.0
16 # Unless required by applicable law or agreed to in writing, software
17 # distributed under the License is distributed on an "AS IS" BASIS,
18 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 # See the License for the specific language governing permissions and
20 # limitations under the License.
21 #============LICENSE_END=========================================================
24 python3 /opt/bitnami/nginx/sbin/configure.py
26 echo "starting sdnc-web"
27 echo "======================="
28 echo " WEBPROTOCOL : $WEBPROTOCOL"
29 echo " WEBPORT : $WEBPORT"
30 echo " SDNRPROTOCOL : $SDNRPROTOCOL"
31 echo " SDNRHOST : $SDNRHOST"
32 echo " SDNRPORT : $SDNRPORT"
33 echo " DNS_RESOLVER : $DNS_RESOLVER"
34 echo " DNS_INTERNAL_RESOLVER : $DNS_INTERNAL_RESOLVER"
35 echo " TRPCEURL : $TRPCEURL"
36 echo " TRPCEGUIURL : $TRPCEGUIURL"
37 echo " TOPOURL : $TOPOURL"
38 echo " TILEURL : $TILEURL"
39 echo " SITEDOCURL : $SITEDOCURL"
40 echo " TERRAINURL : $TERRAINURL"
41 echo "======================="
42 if [ "$WEBPROTOCOL" == "HTTPS" ]; then
43 echo " SSL_CERT_DIR : $SSL_CERT_DIR"
44 echo -n " SSL_CERTIFICATE: $SSL_CERTIFICATE"
45 if [ -f "$SSL_CERT_DIR/$SSL_CERTIFICATE" ]; then
50 echo -n " SSL_CERTIFICATE_KEY: $SSL_CERTIFICATE_KEY"
51 if [ -f "$SSL_CERT_DIR/$SSL_CERTIFICATE_KEY" ]; then
59 if [ ! -z "$DEBUG" ]; then
61 if [ -f "/opt/bitnami/nginx/conf/server_blocks/http_site.conf" ]; then
62 echo "content of /opt/bitnami/nginx/conf/server_blocks/http_site.conf"
63 echo "==============================================================="
64 cat /opt/bitnami/nginx/conf/server_blocks/http_site.conf
65 echo "==============================================================="
68 if [ -f "/opt/bitnami/nginx/conf/server_blocks/https_site.conf" ]; then
69 echo "content of /opt/bitnami/nginx/conf/server_blocks/https_site.conf"
70 echo "==============================================================="
71 cat /opt/bitnami/nginx/conf/server_blocks/https_site.conf
72 echo "==============================================================="
75 #tail -f /opt/bitnami/nginx/logs/* &
78 # Call the base images' run.sh to start NGINX
79 bash /opt/bitnami/scripts/nginx/run.sh