t-rex-tileserver / t-rex

t-rex is a vector tile server specialized on publishing MVT tiles from your own data
https://t-rex.tileserver.ch/
MIT License
556 stars 69 forks source link

S3 cache direct #230

Closed arbakker closed 3 years ago

arbakker commented 3 years ago

Added config options for direct S3 publishing of tile caches. Added two options to the s3-cache config:

If true, will set the header Content-Encoding: gzip on the mvt files.

If true, will set object ACL's on uploaded to public-read. After implementing this option I found out using ACL for access control is not best practice, according to https://github.com/minio/minio/issues/8195. Decided to leave it in nonetheless, considering it is not adding much complexity, but gives users more options how to setup access control on S3.

arbakker commented 3 years ago

closing pr, will resubmit witout the merge commit