public-transport / transitous

Free and open public transport routing.
https://transitous.org
168 stars 51 forks source link

Support feeds blocking downloads from Github/Azure #113

Open vkrause opened 6 months ago

vkrause commented 6 months ago

Affects so far:

felixguendling commented 6 months ago

We have good experience using self-hosted runners for the MOTIS builds (as otherwise builds would be very slow, caching is already more efficient with Docker volumes). Maybe that would be an option? This would probably require a security check for pull requests before running them. Another option would be to host a HTTP proxy for downloads.

Fale commented 6 months ago

I'm working on this (proxy/cache mode). Initial code is at https://github.com/Fale/gtfsproxy I still need a few hours to work on the serving part. I have majority of it written, but I still want to improve some points before pushing. After that, I can host it as well, or if we have specific machines I don't mind if it will be hosted in other places. To cache all downloadable (1729/2246) tranitland-atlas files, 4Gb of space is required. After I complete the first version I plan to work to try to get closer to 100% of the feeds

Fale commented 6 months ago

Ok, the service is ready :).

It is hosted here and you can simply use it in transitous by using the transitland-atlas type and adding the "proxy": true property!

If we wnat to have a different hosting setup, I'm open for alternatives :)

jbruechert commented 6 months ago

Thanks for working on this!

If we end up with a large percentage of feeds depending on it, we should probably consider moving it to some shared project infrastructure, but since our project infrastructure so far is one VM provided by a student initiative at Freie Universität Berlin, it's not that much of an improvement right now :)