Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused ui apis #262

Merged
merged 2 commits into from
Oct 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 0 additions & 54 deletions common.conf
Original file line number Diff line number Diff line change
Expand Up @@ -468,42 +468,6 @@ location /routing-data/v3/finland {
include cors.conf;
}

location /ui/v1/finland/ {
rewrite /ui/v1/finland/(.*) /$1 break;
proxy_pass http://digitransit-ui-matka-v2: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/v1/hsl-next/ {
rewrite /ui/v1/hsl-next/(.*) /$1 break;
proxy_pass http://digitransit-ui-hsl-v2: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/v1/waltti-next/ {
rewrite /ui/v1/waltti-next/(.*) /$1 break;
proxy_pass http://digitransit-ui-waltti-v2: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/v2/matka/ {
rewrite /ui/v2/matka/(.*) /$1 break;
proxy_pass http://digitransit-ui-matka-v2: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/v2/hsl/ {
rewrite /ui/v2/hsl/(.*) /$1 break;
proxy_pass http://digitransit-ui-hsl-v2:8080;
Expand All @@ -513,24 +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/v2/waltti/ {
rewrite /ui/v2/waltti/(.*) /$1 break;
proxy_pass http://digitransit-ui-waltti-v2: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
Loading