Code Review
/
nonrtric.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "BugFix - Enable Controlpanel to start even when gateway is Unavailable"
[nonrtric.git]
/
docker-compose
/
control-panel
/
config
/
nginx.conf
diff --git
a/docker-compose/control-panel/config/nginx.conf
b/docker-compose/control-panel/config/nginx.conf
index
81102eb
..
2414bde
100644
(file)
--- a/
docker-compose/control-panel/config/nginx.conf
+++ b/
docker-compose/control-panel/config/nginx.conf
@@
-2,18
+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;
server {
listen 8080;
server_name localhost;
root /usr/share/nginx/html;
index index.html;
- location /api/ {
- proxy_pass http://backend;
+ location /a1-policy/ {
+ set $upstream nonrtric-gateway;
+ proxy_pass http://$upstream:9090;
+ }
+ location /ei-producer/{
+ set $upstream nonrtric-gateway;
+ proxy_pass http://$upstream:9090;
+ }
+ location / {
+ try_files $uri $uri/ /index.html;
}
}
}
\ No newline at end of file
}
}
}
\ No newline at end of file