mirror of
https://github.com/hyperknot/openfreemap.git
synced 2026-05-21 14:02:15 +00:00
Generating the domain inside the style JSON files dynamically (using nginx sub_filter).
This commit is contained in:
@@ -46,6 +46,11 @@ server {
|
||||
expires 1d;
|
||||
default_type application/json;
|
||||
|
||||
# substitute the domain in the TileJSON
|
||||
sub_filter '__TILEJSON_DOMAIN__' '__DOMAIN__';
|
||||
sub_filter_once off;
|
||||
sub_filter_types '*';
|
||||
|
||||
add_header 'Access-Control-Allow-Origin' '*' always;
|
||||
add_header Cache-Control public;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user