fixed sdncweb helpserver 65/102565/1
authorMichael Dürre <michael.duerre@highstreet-technologies.com>
Fri, 28 Feb 2020 09:39:19 +0000 (10:39 +0100)
committerMichael Dürre <michael.duerre@highstreet-technologies.com>
Fri, 28 Feb 2020 09:39:38 +0000 (10:39 +0100)
fixed unresolved meta.json for helpserver

Issue-ID: SDNC-1089
Signed-off-by: Michael Dürre <michael.duerre@highstreet-technologies.com>
Change-Id: I58b30872bfe4260f8be1c0ade870f8b3d3698798

Former-commit-id: a8786c7978848bf99e8f437fb0083fce94fdf00f

installation/sdnc-web/src/main/resources/http_site.conf
installation/sdnc-web/src/main/resources/https_site.conf
installation/sdnc-web/src/main/scripts/run.sh

index e42ecc7..dd64141 100644 (file)
@@ -48,8 +48,15 @@ server {
        index index.html index.htm index.nginx-debian.html;
 
        server_name _;
-       
+
        set $sdnrserver "SDNRHOST";
+
+       location ~ ^/$  {
+               return 301 /odlux/index.html;
+       }
+       location ~ /help/$  {
+               try_files /help/$args.json $uri;
+       }
        location /  {
                try_files $uri $uri/ @backend;
        }
index 11ba728..49afa07 100644 (file)
@@ -69,7 +69,13 @@ server {
        server_name _;
 
        set $sdnrserver "SDNRHOST";
-       
+
+       location ~ ^/$  {
+               return 301 /odlux/index.html;
+       }
+       location ~ /help/$  {
+               try_files /help/$args.json $uri;
+       }
        location /  {
                try_files $uri $uri/ @backend;
        }
index d2489ea..544dd47 100644 (file)
  
 /opt/bitnami/nginx/sbin/configure.sh
 
+echo "starting sdnc-web"
+echo "================="
+echo " WEBPROTOCOL: $WEBPROTOCOL"
+echo " WEBPORT: $WEBPORT"
+echo " SDNRPROTOCOL: $SDNRPROTOCOL"
+echo " SDNRHOST: $SDNRHOST"
+echo " SDNRPORT: $SDNRPORT"
+echo " LOCALDNS: $LOCALDNS"
+echo " SSL_CERT_DIR: $SSL_CERT_DIR"
+echo -n " SSL_CERTIFICATE: $SSL_CERTIFICATE"
+if [ -f "$SSL_CERTIFICATE" ]; then
+echo " (exists)"
+else
+echo " (missing)"
+fi
+echo -n " SSL_CERTIFICATE_KEY: $SSL_CERTIFICATE_KEY"
+if [ -f "$SSL_CERTIFICATE_KEY" ]; then
+echo " (exists)"
+else
+echo " (missing)"
+fi
+echo ""
+
+if [ ! -z "$DEBUG" ]; then
+
+  if [ -f "/opt/bitnami/nginx/conf/server_blocks/http_site.conf" ]; then
+    echo "content of /opt/bitnami/nginx/conf/server_blocks/http_site.conf"
+    echo "==============================================================="
+    cat /opt/bitnami/nginx/conf/server_blocks/http_site.conf
+    echo "==============================================================="
+  fi
+
+  if [ -f "/opt/bitnami/nginx/conf/server_blocks/https_site.conf" ]; then
+    echo "content of /opt/bitnami/nginx/conf/server_blocks/https_site.conf"
+    echo "==============================================================="
+    cat /opt/bitnami/nginx/conf/server_blocks/https_site.conf
+    echo "==============================================================="
+  fi
+
+  #tail -f /opt/bitnami/nginx/logs/* &
+fi
+
 # Call the base images' run.sh to start NGINX
 bash /run.sh
\ No newline at end of file