Skip to content

Commit

Permalink
Merge pull request #208 from HSLdevcom/restore-geocache
Browse files Browse the repository at this point in the history
Restore geocoding cache
  • Loading branch information
optionsome authored Oct 31, 2022
2 parents e67053c + 417816c commit 912b5b7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions common.conf
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
2 changes: 1 addition & 1 deletion nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 912b5b7

Please sign in to comment.