diff --git a/common.conf b/common.conf index 42bd36d..249c8a1 100644 --- a/common.conf +++ b/common.conf @@ -1,10 +1,10 @@ location /geocoding/v1/ { rewrite /geocoding/v1/(.*) /v1/$1 break; proxy_pass http://pelias-api:8080/; - # proxy_cache geocoding; - # proxy_cache_valid 3d; - # proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504; - # add_header X-Proxy-Cache $upstream_cache_status; + proxy_cache geocoding; + proxy_cache_valid 3d; + proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504; + add_header X-Proxy-Cache $upstream_cache_status; proxy_redirect off; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; diff --git a/nginx.conf b/nginx.conf index a5d7b72..e62e585 100644 --- a/nginx.conf +++ b/nginx.conf @@ -38,7 +38,7 @@ http { proxy_temp_path /opt/nginx/temp-cache; proxy_cache_path /opt/nginx/cache levels=1:2 keys_zone=tiles:10m max_size=4g inactive=7d use_temp_path=off; - # proxy_cache_path /opt/nginx/geocache levels=1:2 keys_zone=geocoding:10m max_size=4g inactive=7d use_temp_path=off; + proxy_cache_path /opt/nginx/geocache levels=1:2 keys_zone=geocoding:10m max_size=4g inactive=7d use_temp_path=off; proxy_cache_path /opt/nginx/external-cache levels=1:2 keys_zone=ext_cache:10m max_size=1g inactive=60m use_temp_path=off; proxy_cache_path /opt/nginx/common levels=1:2 keys_zone=common:10m max_size=4g inactive=60m use_temp_path=off; proxy_cache_path /opt/nginx/sw levels=1:2 keys_zone=sw:10m max_size=200m inactive=1m use_temp_path=off;