aboutsummaryrefslogtreecommitdiffstats
path: root/installation/sdnc-web/src/main/resources
diff options
context:
space:
mode:
Diffstat (limited to 'installation/sdnc-web/src/main/resources')
-rw-r--r--installation/sdnc-web/src/main/resources/http_site.conf8
-rw-r--r--installation/sdnc-web/src/main/resources/https_site.conf8
2 files changed, 4 insertions, 12 deletions
diff --git a/installation/sdnc-web/src/main/resources/http_site.conf b/installation/sdnc-web/src/main/resources/http_site.conf
index dd641418..640668a1 100644
--- a/installation/sdnc-web/src/main/resources/http_site.conf
+++ b/installation/sdnc-web/src/main/resources/http_site.conf
@@ -49,8 +49,6 @@ server {
server_name _;
- set $sdnrserver "SDNRHOST";
-
location ~ ^/$ {
return 301 /odlux/index.html;
}
@@ -61,15 +59,13 @@ server {
try_files $uri $uri/ @backend;
}
location /websocket {
- resolver LOCALDNS;
- proxy_pass SDNRPROTOCOL://$sdnrserver:SDNRPORT/websocket;
+ proxy_pass SDNRPROTOCOL://SDNRHOST:SDNRPORT/websocket;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
location @backend {
- resolver LOCALDNS;
- proxy_pass SDNRPROTOCOL://$sdnrserver:SDNRPORT;
+ proxy_pass SDNRPROTOCOL://SDNRHOST:SDNRPORT;
}
}
diff --git a/installation/sdnc-web/src/main/resources/https_site.conf b/installation/sdnc-web/src/main/resources/https_site.conf
index 49afa079..5dc4cfba 100644
--- a/installation/sdnc-web/src/main/resources/https_site.conf
+++ b/installation/sdnc-web/src/main/resources/https_site.conf
@@ -68,8 +68,6 @@ server {
server_name _;
- set $sdnrserver "SDNRHOST";
-
location ~ ^/$ {
return 301 /odlux/index.html;
}
@@ -80,15 +78,13 @@ server {
try_files $uri $uri/ @backend;
}
location /websocket {
- resolver LOCALDNS;
- proxy_pass SDNRPROTOCOL://$sdnrserver:SDNRPORT/websocket;
+ proxy_pass SDNRPROTOCOL://SDNRHOST:SDNRPORT/websocket;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
location @backend {
- resolver LOCALDNS;
- proxy_pass SDNRPROTOCOL://$sdnrserver:SDNRPORT;
+ proxy_pass SDNRPROTOCOL://SDNRHOST:SDNRPORT;
}
}