You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,12 @@
1
1
# tileserver-gl changelog
2
2
3
-
## 5.5.0-pre.2
3
+
## 5.5.0-pre.3
4
4
* Add S3 support for PMTiles with multiple AWS credential profiles (https://github.com/maptiler/tileserver-gl/pull/1779) by @acalcutt
5
5
* Create .aws directory passthrough folder in Dockerfile (https://github.com/maptiler/tileserver-gl/pull/1784) by @acalcutt
6
6
* Update eslint to v9 (https://github.com/maptiler/tileserver-gl/pull/1473) by @acalcutt
7
7
* Fix Renderer Crashes from Failed Fetches (https://github.com/maptiler/tileserver-gl/pull/1798) by @acalcutt
8
+
* Add Visual Regression Tests for Static Image Overlays (https://github.com/maptiler/tileserver-gl/pull/1792) by @acalcutt
9
+
* Fix S3 URL parsing for nested paths in AWS buckets (https://github.com/maptiler/tileserver-gl/pull/1819) by @acalcutt
8
10
9
11
## 5.4.0
10
12
* Fix the issue where the tile URL cannot be correctly parsed with the HTTPS protocol when using an nginx proxy service (https://github.com/maptiler/tileserver-gl/pull/1578) by @dakanggo
Copy file name to clipboardExpand all lines: docs/config.rst
+41-1Lines changed: 41 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -311,6 +311,23 @@ Here are the available options for each data source:
311
311
If not specified, uses ``AWS_REGION`` environment variable or defaults to ``us-east-1``.
312
312
Optional, only applicable to PMTiles sources using S3 URLs.
313
313
314
+
``s3UrlFormat`` (string)
315
+
Specifies how to interpret the S3 URL format.
316
+
317
+
Allowed values:
318
+
319
+
* ``aws`` - Interpret as AWS S3 (``s3://bucket/path/file.pmtiles``)
320
+
* ``custom`` - Interpret as custom S3 endpoint (``s3://endpoint/bucket/path/file.pmtiles``)
321
+
* Not specified (default) - Auto-detect based on URL pattern
322
+
323
+
Can be specified in the URL using ``?s3UrlFormat=aws`` or in the configuration.
324
+
If both are specified, the configuration value takes precedence.
325
+
326
+
Optional, only applicable to PMTiles sources using S3 URLs.
327
+
328
+
.. note::
329
+
By default, URLs with dots in the first segment (e.g., ``s3://storage.example.com/bucket/file.pmtiles``) are treated as custom endpoints, while URLs without dots are treated as AWS S3. Use ``s3UrlFormat: "aws"`` if your AWS bucket name contains dots.
330
+
314
331
.. note::
315
332
These configuration options will be overridden by metadata in the MBTiles or PMTiles file. if corresponding properties exist in the file's metadata, you do not need to specify them in the data configuration.
316
333
@@ -445,6 +462,17 @@ Precedence order (highest to lowest): Configuration property ``s3Region``, URL p
445
462
446
463
Precedence order (highest to lowest): Configuration property ``requestPayer``, URL parameter ``?requestPayer=true``, Default: ``false``.
447
464
465
+
*S3UrlFormat* - Specifies how to interpret S3 URLs::
@@ -466,6 +497,11 @@ Using configuration properties (recommended)::
466
497
"s3Profile": "production",
467
498
"s3Region": "us-west-2"
468
499
},
500
+
"dotted-bucket-name": {
501
+
"pmtiles": "s3://my.bucket.name/tiles.pmtiles",
502
+
"s3UrlFormat": "aws",
503
+
"s3Region": "us-east-1"
504
+
},
469
505
"eu-requester-pays": {
470
506
"pmtiles": "s3://bucket/tiles.pmtiles",
471
507
"s3Profile": "production",
@@ -476,13 +512,17 @@ Using configuration properties (recommended)::
476
512
477
513
**Using S3 in Style JSON Sources:**
478
514
479
-
When referencing S3 sources from within a style JSON file, use the ``pmtiles://`` prefix with S3 URLs. You can only specify profile, region, and requestPayer using URL query parameters (configuration properties are not available in style JSON)::
515
+
When referencing S3 sources from within a style JSON file, use the ``pmtiles://`` prefix with S3 URLs. You can specify profile, region, requestPayer, and s3UrlFormat using URL query parameters (configuration properties are not available in style JSON)::
@@ -82,6 +85,8 @@ You can also use `pmtiles://` or `mbtiles://` prefixes to explicitly specify the
82
85
.. note::
83
86
For S3 sources, AWS credentials must be configured via environment variables, AWS credentials file (`~/.aws/credentials` on Linux/macOS or `C:\Users\USERNAME\.aws\credentials` on Windows), or IAM roles.
84
87
88
+
The `s3UrlFormat` parameter can be set to `aws` or `custom` to override auto-detection when needed (e.g., for AWS bucket names containing dots).
89
+
85
90
**When using Docker**, the host credentials file can be mounted to the container's user home directory:
0 commit comments