Skip to content
Snippets Groups Projects
Commit 891e17d7 authored by Reinder Kraaij's avatar Reinder Kraaij :eye:
Browse files

Revert changes

parent e7b3bd3e
No related branches found
No related tags found
No related merge requests found
...@@ -2,10 +2,6 @@ upstream django { ...@@ -2,10 +2,6 @@ upstream django {
server app:8001; server app:8001;
} }
upstream tmss_acceptance {
server monitor.control.lofar:9000;
}
# upstream websocket { # upstream websocket {
# server websocket:5678; # server websocket:5678;
# } # }
...@@ -28,17 +24,14 @@ server { ...@@ -28,17 +24,14 @@ server {
} }
location /acc/ { location /acc/ {
try_files $uri @proxy_to_accp; proxy_pass http://monitor.control.lofar:9000/tmss-frontend-web-acceptance/build/;
}
location @proxy_to_accp {
proxy_pass http://tmss_acceptance/tmss-frontend-web-acceptance/build/index.html;
proxy_set_header Host tmss.lofar.eu; proxy_set_header Host tmss.lofar.eu;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Proto $scheme;
} }
location @proxy_to_app { location @proxy_to_app {
proxy_pass http://django; proxy_pass http://django;
...@@ -58,6 +51,24 @@ server { ...@@ -58,6 +51,24 @@ server {
try_files $uri @proxy_to_ws; try_files $uri @proxy_to_ws;
} }
# location @proxy_to_ws {
# proxy_pass http://websocket;
#
# proxy_http_version 1.1;
# proxy_set_header Upgrade $http_upgrade;
# proxy_set_header Connection upgrade;
#
# proxy_redirect off;
# proxy_set_header Host tmss.lofar.eu;
# proxy_set_header X-Real-IP $remote_addr;
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# proxy_set_header X-Forwarded-Host $server_name;
#
# # disables proxy cache completely. does not go well with websockets
# proxy_cache_bypass 1;
# proxy_no_cache 1;
# }
location /static/ { location /static/ {
alias /opt/lofar/staticfiles/; alias /opt/lofar/staticfiles/;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment