Skip to content

Commit

Permalink
fix bad pr
Browse files Browse the repository at this point in the history
  • Loading branch information
Topi Koivunen authored and Topi Koivunen committed Dec 9, 2022
1 parent 4ed4d27 commit ec1287e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions common.conf
Original file line number Diff line number Diff line change
Expand Up @@ -137,43 +137,43 @@ location /map/v1/ {
proxy_pass http://hsl-map-server:8080;
proxy_cache tiles;
proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504;
proxy_cache_key $map_cache_key;
proxy_cache_revalidate on;
proxy_cache_lock on;
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;
add_header X-Cache-Status $upstream_cache_status;
add_header X-Test $map_cache_key;
}

location /map/v2/ {
proxy_pass http://hsl-map-server:8080;
proxy_cache tiles;
proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504;
proxy_cache_key $map_cache_key;
proxy_cache_revalidate on;
proxy_cache_lock on;
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;
add_header X-Cache-Status $upstream_cache_status;
add_header X-Test $map_cache_key;
}

location /map/v3/ {
rewrite /map/v3/(.*) /map/v2/$1 break;
proxy_pass http://hsl-map-server:8080;
proxy_cache tiles;
proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504;
proxy_cache_key $map_cache_key;
proxy_cache_revalidate on;
proxy_cache_lock on;
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;
add_header X-Cache-Status $upstream_cache_status;
add_header X-Test $map_cache_key;
}

location /map/v3/hsl/fi/ {
Expand Down

0 comments on commit ec1287e

Please sign in to comment.