Hey Cloudflare folk!
I’m new to Cloudflare, and a noob to systems-level stuff. I’m hoping that Cloudflare can be useful for a personal project that I’m working on.
I’ve got a react application hosted on github pages (HTTPS), but it requests, through chrome XHR, to a service that only supports HTTP—the NextBus API (San Francisco bus times) at http://webservices.nextbus.com/service/publicXMLFeed. Browsers don’t like the mixed http/https traffic, so I’d like to proxy that traffic for my application. I’ve emailed them, but their customer is the government, so good luck getting that traffic over HTTPS anytime in this decade.
I don’t care what the domain name is, just need to wrap that HTTP traffic in HTTPS, and forward along the same Access-Control-Allow-Origin: *
header that they already set. If I could set my own headers, that’d be cool too.
I don’t expect more than 10k requests a day (I poll every 10s), and don’t anticipate ever needing to scale up from there.
Are there any guides that can help me with this? I’m a bit overwhelmed with all the features of Cloudflare, and don’t know where to start. Is Cloudflare even the right tool for this? I’m hoping there’s somewhere I can drop in some nginx config with under 20 lines and never think about it again.