From 3e45d91811af9a5e889f186ac19bc25816fbb6c7 Mon Sep 17 00:00:00 2001 From: Zsolt Ero Date: Tue, 10 Sep 2024 23:56:58 +0200 Subject: [PATCH] broken --- modules/http_host/http_host_lib/nginx.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/http_host/http_host_lib/nginx.py b/modules/http_host/http_host_lib/nginx.py index 313e8db..ebbd329 100644 --- a/modules/http_host/http_host_lib/nginx.py +++ b/modules/http_host/http_host_lib/nginx.py @@ -170,6 +170,7 @@ def create_version_location( ) return f""" + # specific JSON location = /{area}/{version} {{ # no trailing slash alias {tilejson_path}; # no trailing slash @@ -180,6 +181,7 @@ def create_version_location( add_header Cache-Control public; }} + # specific PBF location /{area}/{version}/ {{ # trailing slash alias {subdir}/tiles/; # trailing slash try_files $uri @empty_tile; @@ -225,6 +227,7 @@ def create_latest_locations(*, local: str, domain: str) -> str: # latest location_str += f""" + # latest JSON location = /{area} {{ # no trailing slash alias {tilejson_path}; # no trailing slash