mirror of
https://github.com/hyperknot/openfreemap.git
synced 2026-05-21 22:12:15 +00:00
nginx
This commit is contained in:
@@ -34,6 +34,9 @@ def cli():
|
||||
location /{area}/{version}/ {{ # trailing hash important
|
||||
alias {subdir}/; # trailing hash important
|
||||
try_files $uri @empty;
|
||||
|
||||
add_header Cache-Control public;
|
||||
expires 10y;
|
||||
}}
|
||||
"""
|
||||
|
||||
|
||||
@@ -13,5 +13,8 @@ server {
|
||||
location @empty {
|
||||
default_type application/vnd.mapbox-vector-tile;
|
||||
return 200 '';
|
||||
|
||||
add_header Cache-Control public;
|
||||
expires 10y;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user