1
0
Fork 0
forked from OpenNeo/impress
impress/app/models
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
..
item oh dang, did we just fix most of the mixed content? 2015-08-05 20:11:08 -04:00
asset_image_conversion_request.rb
campaign.rb thank-you message automatically deploys on campaign success 2015-09-22 22:40:51 -07:00
closet_group.rb
closet_hanger.rb oh huh. looks like remove/move are ready. 2015-09-26 19:55:09 -07:00
closet_hanger_observer.rb oh poo, didn't commit these properly with the closet hanger caching :( 2013-12-27 21:48:38 -05:00
closet_list.rb refactor importing 2015-07-27 13:25:24 -04:00
closet_list_observer.rb oh poo, didn't commit these properly with the closet hanger caching :( 2013-12-27 21:48:38 -05:00
closet_visibility.rb Cache trade info on items#show, finally! I think it's the performance culprit. 2013-12-27 14:49:46 -05:00
color.rb lolwhoops, measure prank-funniness in PST 2014-04-01 19:10:44 -05:00
contribution.rb
contribution_observer.rb
donation.rb yum, we accept bitcoin! 2014-12-23 23:22:15 -05:00
donation_feature.rb stop breaking on donations that delete their outfit 2015-02-25 13:42:35 -06:00
fragment_expiration.rb
fragment_localization.rb
image.rb stop appending ?NO_CAMO_CONFIG when image proxying is disabled 2017-04-01 10:04:54 -07:00
item.rb Add db field to override special color 2018-05-09 14:10:20 -07:00
item_observer.rb Cache trade info on items#show, finally! I think it's the performance culprit. 2013-12-27 14:49:46 -05:00
item_outfit_relationship.rb
neopets_connection.rb store all neopets usernames for logged-in users, but breaks closet_hangers#index 2014-01-18 21:55:01 -06:00
neopets_page.rb import from gallery 2015-07-28 15:05:40 -04:00
neopets_user.rb Use secret NEOPETS_URL_ORIGIN to bypass HTTPS 2022-08-02 20:46:47 -07:00
news_post.rb news posts read from the database, with a campaign-supplement classname option :) 2015-09-26 20:37:03 -07:00
outfit.rb add prank messages to outfits#show 2014-03-28 15:15:04 -05:00
outfit_image_update.rb
outfit_image_uploader.rb
parent_swf_asset_relationship.rb
pet.rb Use secret NEOPETS_URL_ORIGIN to bypass HTTPS 2022-08-02 20:46:47 -07:00
pet_attribute.rb
pet_state.rb More generously catch errors on userlookup 2019-10-27 14:24:21 -07:00
pet_type.rb prefer scraped rainbow pool images over pet images 2015-09-05 18:48:41 +00:00
pet_type_observer.rb
pretty_param.rb parameterize user params like items, plus a cleaner parameterization scheme 2011-07-26 18:49:52 -04:00
roulette.rb
species.rb
static_resource.rb
swf_asset.rb Fix body ID bug saving SwfAsset outside modeling 2021-03-16 10:40:01 -07:00
user.rb finally let people remove all items from the list at once. 2015-07-19 12:35:49 -04:00
user_sweeper.rb Cache trade info on items#show, finally! I think it's the performance culprit. 2013-12-27 14:49:46 -05:00
wardrobe_tip.rb basic tip functionality 2014-04-02 23:00:50 -05:00
zone.rb fix the necklace/collar advanced search bug! 2015-09-24 19:51:45 -07:00