From 1e86592650fc695615e0fa34c947b32693d03466 Mon Sep 17 00:00:00 2001 From: sebdet Date: Tue, 27 Aug 2019 17:56:04 -0700 Subject: Fix frontend docker Fix the frontend docker in Nginx with https for backend in https as well Issue-ID: CLAMP-486 Change-Id: I33fd89289618affa5e734c80991aaefece31309e Signed-off-by: sebdet --- ui-react/nginx/nginx.conf | 17 ----------------- ui-react/package.json | 3 +-- ui-react/public/index.html | 10 +++++----- 3 files changed, 6 insertions(+), 24 deletions(-) delete mode 100644 ui-react/nginx/nginx.conf (limited to 'ui-react') diff --git a/ui-react/nginx/nginx.conf b/ui-react/nginx/nginx.conf deleted file mode 100644 index 758a646e..00000000 --- a/ui-react/nginx/nginx.conf +++ /dev/null @@ -1,17 +0,0 @@ -server { - - listen 80; - - location / { - root /usr/share/nginx/html; - index index.html index.htm; - try_files $uri $uri/ /index.html; - } - - error_page 500 502 503 504 /50x.html; - - location = /50x.html { - root /usr/share/nginx/html; - } - -} \ No newline at end of file diff --git a/ui-react/package.json b/ui-react/package.json index 65608bed..3d2f6812 100644 --- a/ui-react/package.json +++ b/ui-react/package.json @@ -4,14 +4,13 @@ "description": "ONAP Clamp Loop Designer UI", "author": "ONAP Clamp Team", "license": "Apache-2.0", - "homepage": "wiki.onap.org", "publishConfig": { "registry": "https://nexus3.onap.org/repository/npm.snapshot/" }, "main": "index.js", "proxy": "https://localhost:8443", "scripts": { - "start": "react-scripts start", + "start": "HTTPS=true react-scripts start", "build": "react-scripts build", "test": "react-scripts test --env=jsdom --watchAll=false", "eject": "react-scripts eject", diff --git a/ui-react/public/index.html b/ui-react/public/index.html index 2b740fea..bab3e7ab 100644 --- a/ui-react/public/index.html +++ b/ui-react/public/index.html @@ -26,15 +26,15 @@ + content="width=device-width, initial-scale=1, shrink-to-fit=no"> - - + + Clamp Designer UI - -
+ +
-- cgit 1.2.3-korg