From 3081e428bf7c97eec0dcf1b91ec785b89ffa016d Mon Sep 17 00:00:00 2001 From: Zsolt Ero Date: Sat, 30 Dec 2023 20:24:45 +0100 Subject: [PATCH] nginx json --- scripts/http_host/nginx_sync/nginx_sync.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/http_host/nginx_sync/nginx_sync.py b/scripts/http_host/nginx_sync/nginx_sync.py index 89d9996..13a1bb2 100755 --- a/scripts/http_host/nginx_sync/nginx_sync.py +++ b/scripts/http_host/nginx_sync/nginx_sync.py @@ -61,7 +61,8 @@ def cli(): version_str = rf""" location /{area}/{version} {{ # no trailing hash - alias {tilejson_path}; # no trailing hash + alias {tilejson_path}; # no trailing hash\ + default_type application/json; add_header 'Access-Control-Allow-Origin' '*' always; add_header Cache-Control public;