1
0
Fork 0
forked from OpenNeo/impress
impress/app
Emi Dunn-Rankin 568a3645de
Use secret NEOPETS_URL_ORIGIN to bypass HTTPS
Oops, neopets.com finally stopped accepting `http://` connections, so our AMFPHP requests stopped working! And our current dependencies make it hard to make modern HTTPS requests :(

Instead, we're doing this quick-fix: we have a connection who knows the internal address for the Neopets origin server behind their CDN, which *does* still accept `http://` requests!

So, when `NEOPETS_URL_ORIGIN` is specified in the secret `.env` file (not committed to the repository), we'll use it instead of `http://www.neopets.com`. However, we still have that in the code as a fallback, just to be a bit less surprising to some theoretical future dev so they can see the real error message, and to self-document a bit of what that value is semantically doing! (The documentation angle is more of why it's there, rather than an actual expectation that any actual person in the future will run the code and get the fallback.)
2022-08-02 20:46:47 -07:00
..
assets whoops, accept 1-digit donation amounts! 2018-01-20 17:55:21 -08:00
controllers new donate layout for post-2017 campaign 2018-01-18 17:14:02 -08:00
flex advanced search by pet type fit :) 2014-04-05 18:48:20 -05:00
helpers Update Neopia URLs to use HTTPS 2018-04-16 20:36:50 -07:00
mailers donation mailer 2014-09-10 14:32:54 -05:00
models Use secret NEOPETS_URL_ORIGIN to bypass HTTPS 2022-08-02 20:46:47 -07:00
views new donate layout for post-2017 campaign 2018-01-18 17:14:02 -08:00