Code Review
/
portal
/
nonrtric-controlpanel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
BugFix - Enable Controlpanel to start even when gateway is Unavailable
[portal/nonrtric-controlpanel.git]
/
webapp-frontend
/
nginx.conf
diff --git
a/webapp-frontend/nginx.conf
b/webapp-frontend/nginx.conf
index
3da6003
..
2414bde
100644
(file)
--- a/
webapp-frontend/nginx.conf
+++ b/
webapp-frontend/nginx.conf
@@
-2,24
+2,22
@@
events{}
http {
include /etc/nginx/mime.types;
http {
include /etc/nginx/mime.types;
-
- upstream backend {
- server nonrtric-gateway:9090;
- }
-
+ resolver 127.0.0.11;
server {
listen 8080;
server_name localhost;
root /usr/share/nginx/html;
index index.html;
location /a1-policy/ {
server {
listen 8080;
server_name localhost;
root /usr/share/nginx/html;
index index.html;
location /a1-policy/ {
- proxy_pass http://backend;
+ set $upstream nonrtric-gateway;
+ proxy_pass http://$upstream:9090;
}
}
- location /ei-producer/ {
- proxy_pass http://backend;
+ location /ei-producer/{
+ set $upstream nonrtric-gateway;
+ proxy_pass http://$upstream:9090;
}
location / {
}
location / {
- try_files $uri $uri/ /index.html;
+
try_files $uri $uri/ /index.html;
}
}
}
\ No newline at end of file
}
}
}
\ No newline at end of file