Page MenuHomePhabricator

payments fr-tech-dev server should serve something when ports are not forwarded
Open, MediumPublic

Description

The paymentstestX.wmcloud.org domains are periodically crawled by Apple and Amazon to ensure that they are still valid. If that happens when we don't have the ports forwarded to a development machine, the crawl fails and we get alarming emails.

Apple requests /.well-known/apple-developer-merchantid-domain-association.txt
Figure out which path Amazon requests, and set up an nginx site (we've already added the nginx puppet role) to serve those files and proxy all other requests to the forwarded ports.

Event Timeline

DStrine triaged this task as Medium priority.Feb 2 2022, 5:35 PM

This is working for the Apple Pay files, and documented at https://wikitech.wikimedia.org/wiki/Fundraising/Fundraising-dev#FR-tech-dev_cloud_project . Still need to figure out what Amazon wants to crawl.

OK, we now also have a slightly prettier default page when no-one's connected. It's just a custom 502 error page with the status code set to 200.

You have reached a development URL for the Fundraising Tech team at the Wikimedia Foundation.

To donate to the Wikimedia Foundation, please visit donate.wikimedia.org.

If you are a fundraising tech team member and you are attempting to use this URL for development, please see instructions for forwarding test domains.

Served by the fr-tech-dev project on Wikimedia Cloud Services

Ejegg removed Ejegg as the assignee of this task.Apr 15 2024, 9:22 PM