OvertureMaps / io-site

MIT License
33 stars 5 forks source link

Switch tiles URL to CloudFront instead of S3 bucket #88

Closed bdon closed 3 months ago

bdon commented 3 months ago

@Bonkles it may be easiest to manage this through a DNS entry like tiles-cdn.overturemaps.org

Bonkles commented 3 months ago

Hey Brandon- I agree we need something more than just 'raw buckets' to serve things out of. What's your opinion on using something like Martin? Also would love to hear about the infra that you've set up to support all this!

bdon commented 3 months ago

@Bonkles CloudFront fronting the S3 bucket should be good enough; do we need support ZXY URLs somewhere?

Bonkles commented 3 months ago

I don't think we do quite yet, but am trying to learn about what a dedicated tile server might let us do (over & above what Cloudfront can already give us)

bdon commented 3 months ago

We could use the Lambda to hook into CloudFront for ZXY URLs:

https://docs.protomaps.com/deploy/aws

This would let us serve ZXY tiles, and serve from a private S3 bucket. But since we're hosting the full PMTiles publicly for people to download the private bucket part is irrelevant.