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:
@@ -185,6 +185,14 @@ See [dev setup docs](docs/dev_setup.md).
|
||||
|
||||
## Changelog
|
||||
|
||||
**v0.8**
|
||||
|
||||
Lot of self-hosting related fixes.
|
||||
|
||||
Generating the domain inside the style JSON files dynamically (using nginx sub_filter).
|
||||
|
||||
Added SKIP_LETSENCRYPT variable for cases when the certificates are self-managed or self-signed is OK.
|
||||
|
||||
**v0.7**
|
||||
|
||||
MBTiles are now uploaded, next to the btrfs image files.
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -40,6 +40,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