Skip to content

Commit

Permalink
Remove hsl test ui
Browse files Browse the repository at this point in the history
  • Loading branch information
optionsome committed Oct 9, 2024
1 parent cbf93c7 commit cb40b5f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 57 deletions.
9 changes: 0 additions & 9 deletions common.conf
Original file line number Diff line number Diff line change
Expand Up @@ -477,15 +477,6 @@ location /ui/v2/hsl/ {
# proxy_set_header X-Forwarded-Host $host;
}

location /ui/v2-test/hsl/ {
rewrite /ui/v2-test/hsl/(.*) /$1 break;
proxy_pass http://digitransit-ui-hsl-v2-test:8080;
proxy_redirect off;
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 $host;
}

location /ui/v3/matka/ {
rewrite /ui/v3/matka/(.*) /$1 break;
proxy_pass http://digitransit-ui-matka-v3:8080;
Expand Down
48 changes: 0 additions & 48 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -345,54 +345,6 @@ http {
}
}

# test service for dedicated project (eg. for node-migration)
server {
server_name test.digitransit.fi;
listen 8080;

if ($http_x_forwarded_proto != "https") {
return 301 https://$host$request_uri;
}

# Add HTTP Strict Transport Security for good measure.
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains;";

error_page 500 502 503 504 /502.html;
location = /502.html {
proxy_pass https://errorpages.blob.core.windows.net/html/error_page.html;
internal;
}

location = /sw.js {
proxy_pass http://digitransit-ui-hsl-v2-test:8080;
include basicsettings.conf;
proxy_cache sw;
proxy_cache_valid 200 30s;
proxy_cache_lock on;
proxy_cache_key "$host$request_uri";
add_header X-Proxy-Cache $upstream_cache_status;
proxy_ignore_headers X-Accel-Expires Expires Cache-Control Set-Cookie;
proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504;
}

location /local-storage-emitter {
proxy_hide_header X-Frame-Options;
proxy_pass http://digitransit-ui-hsl-v2-test:8080;
include basicsettings.conf;
}
location = /haku {
add_header X-Robots-Tag "noindex, nofollow, nosnippet, noarchive";
proxy_hide_header X-Frame-Options;
proxy_pass http://digitransit-ui-hsl-v2-test:8080;
include basicsettings.conf;
}

location / {
proxy_pass http://digitransit-ui-hsl-v2-test:8080;
include basicsettings.conf;
}
}

server {
server_name dev-matka-yleisviesti.digitransit.fi matka-yleisviesti.digitransit.fi;
listen 8080;
Expand Down

0 comments on commit cb40b5f

Please sign in to comment.