openstreetmap-polska / ua-2022-map

Map of reception points for refugees near Polish-Ukrainian border
https://dopomoha.pl
MIT License
37 stars 11 forks source link

Deploy to static site server #60

Closed migurski closed 2 years ago

migurski commented 2 years ago

In email conversation with Włodzimierz Bartczak I learned that OSM-PL is worried about attacks on the site after start of promotion. Static site hosting on a large service such as Amazon S3 with a CDN like Cloudfront can protect against most foreseeable attacks. This draft PR demonstrates how the site can be deployed to a static site host.

In this example, we deploy to a bucket visible online at https://dopomoha.teczno.com.

See https://github.com/migurski/ua-2022-map/runs/5370557331 for the latest successful run.

To keep the data up-to-date, AWS and other cloud hosts support scheduled tasks that can run download_data.py periodically.

ttomasz commented 2 years ago

Hey, thanks for the example. We have managed to set up CloudFront in front of our server so we should be fine for now. We are generating OSM tiles with ukrainian language so we need the server anyway.

ttomasz commented 2 years ago

It's a good idea with trigerring script on build tho, we'll need to add that

migurski commented 2 years ago

Great, thanks for the feedback! Closing this now.