openfreemap
openfreemap copied to clipboard
A few questions: HTTP/3 QUIC support and updates?
Hi,
I am looking at self hosting tiles for my project, which currently generates quite an invoice in our 3rd party provider. Though I have a few questions that I have not found mentioned in the docs or in the issues.
- I understand there is no automated updating of tiles from the self-hosting side, right? I read that you update tiles every week. So what would be the process in our side to update the tiles. Do we run the same script to redownload all tiles everytime? And what happens to the existing tiles at that moment the update is running?
- Is there a way to implement HTTP/3 QUIC support on the NGINX?
Would be helpful to receive an answer.
Anyways, very nice project!
- There is automated updating, I'm running the following command on production servers:
./init-server.py http-host-autoupdate hostname -y
The only limitation is that the repo can be updated at any time and then these would possibly break. For example I change the public bucket of the tiles, etc. It's not likely to happen frequently, but when it does, autoupdates won't work any longer. Then you'll need to git pull and run that command again. So it's not a lot of effort, but you need to follow this repo for changes.
- QUIC, I have no idea if the official nginx binaries support it and if so, what config is needed to enable it. Feel free to investigate it.
Regarding QUIC. Yes, Nginx supports it fully since version 1.25. But I believe one has to build Nginx package with ngx_http_v3_module to be able to enable it.
About the module: https://nginx.org/en/docs/http/ngx_http_v3_module.html QUIC configuration: https://nginx.org/en/docs/quic.html
Also it looks like its possible to install already prebuilt Nginx with QUIC: https://quic.nginx.org/PACKAGES
Yes, it seems Ubuntu 22 is one of the supported platforms. I don't yet understand what would using QUIC add to this project though.
Feel free to play with it and if it works for you in production, feel free to submit a PR.
In theory it should speed up tile serving, reduce latency.
In the next weeks, I'll enable Cloudflare CDN for the public instance, so that automatically adds HTTP/3 for all users. For self-hosting though, it might still make sense to add this config, as long as it doesn't get in conflict with the rest of the stack. Feel free to add a PR.