Skip to content
This repository has been archived by the owner on Aug 8, 2024. It is now read-only.

Commit

Permalink
Cache: Remove duplicated config
Browse files Browse the repository at this point in the history
  • Loading branch information
tordans committed Mar 19, 2024
1 parent 37103ba commit 5f43f6d
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions configs/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -48,29 +48,6 @@ http {
server {
listen 80;

# Cache lower zooms longer
location ~* ^/(?<tile_type>.+)/([0-8])/([0-9]+)/([0-9]+)$ {
proxy_pass http://tiles_upstream/$uri$is_args$args;

proxy_connect_timeout 5m;
proxy_send_timeout 5m;
proxy_read_timeout 5m;
send_timeout 5m;

# Nginx file cache
proxy_cache tiles_cache;
proxy_cache_lock on;
proxy_cache_revalidate on;
proxy_cache_valid 200 302 4d;
proxy_cache_valid 404 1m;
proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504;
add_header X-Cache-Status $upstream_cache_status;

# Browser cache
expires 18h;
add_header Cache-Control "public, no-transform";
}

# High zoom (and therefore volatile) Tile URLs will be cached shorter
location ~* ^/(?<tile_type>.+)/([0-9]+)/([0-9]+)/([0-9]+)$ {
proxy_pass http://tiles_upstream/$uri$is_args$args;
Expand Down

0 comments on commit 5f43f6d

Please sign in to comment.