Skip to content

Commit 717a197

Browse files
committed
Generating the domain inside the style JSON files dynamically (using nginx sub_filter).
1 parent 2bee8df commit 717a197

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,14 @@ See [dev setup docs](docs/dev_setup.md).
185185

186186
## Changelog
187187

188+
**v0.8**
189+
190+
Lot of self-hosting related fixes.
191+
192+
Generating the domain inside the style JSON files dynamically (using nginx sub_filter).
193+
194+
Added SKIP_LETSENCRYPT variable for cases when the certificates are self-managed or self-signed is OK.
195+
188196
**v0.7**
189197

190198
MBTiles are now uploaded, next to the btrfs image files.

modules/http_host/http_host_lib/nginx_confs/le.conf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ server {
4646
expires 1d;
4747
default_type application/json;
4848

49+
# substitute the domain in the TileJSON
50+
sub_filter '__TILEJSON_DOMAIN__' '__DOMAIN__';
51+
sub_filter_once off;
52+
sub_filter_types '*';
53+
4954
add_header 'Access-Control-Allow-Origin' '*' always;
5055
add_header Cache-Control public;
5156
}

modules/http_host/http_host_lib/nginx_confs/ledns.conf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ server {
4040
expires 1d;
4141
default_type application/json;
4242

43+
# substitute the domain in the TileJSON
44+
sub_filter '__TILEJSON_DOMAIN__' '__DOMAIN__';
45+
sub_filter_once off;
46+
sub_filter_types '*';
47+
4348
add_header 'Access-Control-Allow-Origin' '*' always;
4449
add_header Cache-Control public;
4550
}

0 commit comments

Comments
 (0)