openfisca / fr.openfisca.org

Le site web d'OpenFisca-France. / OpenFisca-France web site.
GNU Affero General Public License v3.0
2 stars 3 forks source link

Redirect API and reverse-proxy Legislation Explorer #54

Closed cbenz closed 3 years ago

cbenz commented 3 years ago

Related to https://github.com/openfisca/openfisca-ops/pull/95 and https://github.com/openfisca/legislation-explorer/pull/231

The API and the Legislation Explorer for OpenFisca-France have been migrated to a new server.

This PR updates the Netlify settings to:

A proof of concept has been made with a test project which is deployed to optimistic-turing-350a61.netlify.app:

Along with this PR, the DNS zone has to be updated to make the domain fr.openfisca.org point to Netlify, and actually use the _redirects config file.

More context: the _redirects file was present in the source code repository but wasn't actually used, because the DNS zone configured the domain fr.openfisca.org to point to the server, which reverse-proxies the Netlify website on site.fr.openfisca.org, and reverse-proxies also /legislation on localhost:2030. So Netlify did not actually received the https://fr.openfisca.org/legislation requests.