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