https://github.com/openactive/cloudflare-reverse-proxy
Cloudflare reverse proxy scripts for OpenActive.io
https://github.com/openactive/cloudflare-reverse-proxy
Last synced: about 1 year ago
JSON representation
Cloudflare reverse proxy scripts for OpenActive.io
- Host: GitHub
- URL: https://github.com/openactive/cloudflare-reverse-proxy
- Owner: openactive
- License: mit
- Created: 2020-07-26T11:46:14.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-05-21T19:46:44.000Z (about 2 years ago)
- Last Synced: 2025-02-08T07:08:28.979Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 32.2 KB
- Stars: 0
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# cloudflare-reverse-proxy [](https://github.com/openactive/cloudflare-reverse-proxy/actions)
This repository contains Cloudflare reverse proxy scripts for OpenActive.io.
## Purpose
### [jsonld-reverse-proxy](jsonld-reverse-proxy/index.js)
This Cloudflare reverse proxy serves JSON-LD for resources on the openactive.io domain when the "`Accept`" header of a request contains "`application/ld+json`". This is required to ensure compliance with JSON-LD.
### [website-reverse-proxy](website-reverse-proxy/index.js)
This Cloudflare reverse proxy serves content at the subdomain https://www.openactive.io/ that is now hosted at https://openactive.io/, where a [301 redirect](https://github.com/openactive/website-redirection) would break existing implementations. This is required for backwards compatibility, for example with Gladstone's OWS.
## Deployment
This repository is configured to automatically deploy the `master` branch to the Cloudflare LIVE environment via Github Actions.
## Contribution
Commits to the master branch of this repository that affect the `*.js` files have the potential to bring down products that rely on these reverse proxies for backwards compatibility or JSON-LD compatibility, hence every change to the master branch MUST be submitted in a pull request and have at least one external review.