svsticky / pxl

Manage photo albums on S3 buckets
https://pxl-demo.svsticky.nl
Mozilla Public License 2.0
17 stars 2 forks source link

S3 endpoint URL config doesn't account for custom URL formats #47

Closed tomwassenberg closed 5 years ago

tomwassenberg commented 5 years ago

For https://photos.svsticky.nl/, we use DigitalOcean Spaces with its CDN enabled. However, the CDN uses a different URL format than the one currently supported by pxl: https://\<space>.\<region>.cdn.digitaloceanspaces.com/.

Also, DO recently added the feature of using custom subdomains when using the CDN, which also changes the URL format.

Therefore it would be nice if pxl can support custom URL formats, since DO Spaces without its CDN doesn't seem to be very performant for small files (the lack of HTTP/2, even with CDN, also doesn't help).