File tree Expand file tree Collapse file tree 3 files changed +18
-0
lines changed
modules/http_host/http_host_lib/nginx_confs Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Original file line number Diff line number Diff 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
190198MBTiles are now uploaded, next to the btrfs image files.
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments