Fixed bugs in Gateway
Updated the Proxy configuration in Frontend
Updated the nginx conf
Deleted the Web-backend project
Issue-ID: NONRTRIC-434
Change-Id: Ie56759a35385b615fc7c5af18b154432f45c0d26
Signed-off-by: Lathish <lathishbabu.ganesan@est.tech>
diff --git a/webapp-frontend/README.md b/webapp-frontend/README.md
index 68ff85f..7ac722a 100644
--- a/webapp-frontend/README.md
+++ b/webapp-frontend/README.md
@@ -3,6 +3,7 @@
## Development server
Run `./ng serve --proxy-config proxy.conf.json` or `npm start` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
+You may also need to Start the Control Panel Gateway,Policy Management Service & EI Coordinator if you want to view the data in UI.
## Development server with Mock Data
Run `npm run start:mock` for a dev server with mock data. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files. This enables the developer to test the UI without the need of backend.
diff --git a/webapp-frontend/nginx.conf b/webapp-frontend/nginx.conf
index 164875c..3da6003 100644
--- a/webapp-frontend/nginx.conf
+++ b/webapp-frontend/nginx.conf
@@ -4,11 +4,11 @@
include /etc/nginx/mime.types;
upstream backend {
- server nonrtricgateway:9090;
+ server nonrtric-gateway:9090;
}
server {
- listen 7070;
+ listen 8080;
server_name localhost;
root /usr/share/nginx/html;
index index.html;
diff --git a/webapp-frontend/proxy.conf.json b/webapp-frontend/proxy.conf.json
index b82271d..d704341 100644
--- a/webapp-frontend/proxy.conf.json
+++ b/webapp-frontend/proxy.conf.json
@@ -1,6 +1,10 @@
{
- "/api": {
- "target": "http://localhost:8080",
+ "/a1-policy": {
+ "target": "http://localhost:9090",
"secure": false
- }
-}
+ },
+ "/ei-producer": {
+ "target": "http://localhost:9090",
+ "secure": false
+ }
+}
\ No newline at end of file