{"id":21612292,"url":"https://github.com/anapsix/cloudflare-originator","last_synced_at":"2025-03-18T16:26:51.255Z","repository":{"id":34542076,"uuid":"179679613","full_name":"anapsix/cloudflare-originator","owner":"anapsix","description":"Cloudflare Origin Customizer, allowing to map Cloudflare CDN to Origin paths","archived":false,"fork":false,"pushed_at":"2022-12-03T04:51:34.000Z","size":859,"stargazers_count":0,"open_issues_count":11,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-24T20:18:27.083Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anapsix.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-04-05T12:44:36.000Z","updated_at":"2020-08-13T15:37:15.000Z","dependencies_parsed_at":"2023-01-15T07:45:49.155Z","dependency_job_id":null,"html_url":"https://github.com/anapsix/cloudflare-originator","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anapsix%2Fcloudflare-originator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anapsix%2Fcloudflare-originator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anapsix%2Fcloudflare-originator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anapsix%2Fcloudflare-originator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anapsix","download_url":"https://codeload.github.com/anapsix/cloudflare-originator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244258534,"owners_count":20424406,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-24T21:17:47.634Z","updated_at":"2025-03-18T16:26:51.227Z","avatar_url":"https://github.com/anapsix.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CloudFlare Originator\nCloudflare Origin Customizer, allowing to map Cloudflare CDN to Origin paths\n\n\u003ca href=\"https://www.cloudflare.com/apps/cloudflare-originator/install?source=button\"\u003e\n  \u003cimg\n    src=\"https://install.cloudflareapps.com/install-button.png\"\n    alt=\"Install Cloudflare Originator with Cloudflare\"\n    border=\"0\"\n    width=\"150\"\u003e\n\u003c/a\u003e\n\n## Overview\n\nThis Cloudflare App attempts to replicate AWS CloudFront's convenient capability of mapping path of incoming requests to a different origin path.\n\nCan be used as a standalone worker, see [`workers/worker.js`](./workers/worker.js) for details.\n\n## Features\n\n#### Cloudflare DNS\n\nAdds DNS record used as your Cloudflare-backed CDN.\n\n#### Cloudflare Workers\n\nAdds [Cloudflare Worker](https://developers.cloudflare.com/workers/), which maps all incoming requests matching your Cloudflare CDN hostname to configured Origin path.\n\n\u003e WARNING: When using S3 as Origin, make sure to have S3 URLs publicly reachable, or have appropriate bucket policy. See [S3_as_Origin.md](./S3_as_Origin.md) for example policy.\n\n## Setup\n\n- Fork and clone the repo.\n- Make desired changes.\n- Install the dependencies with `yarn install` then build the project with `yarn build` (or `npm run build`).\n- Next, navigate to [Cloudflare App Creator](https://www.cloudflare.com/apps/developer/app-creator) and upload your project directory.\n\nThe App Creator will update automatically on file changes (Chrome only). Once you're done testing, press Create App to submit your app for moderation. Refer to our [Terms of Use](https://www.cloudflare.com/apps/developer/docs/resources/terms-of-use) for more information.\n\n## Usage\n\n- `yarn start` (or `npm start`) Sets up your dev environment and runs Webpack in watch mode.\n- `yarn build` (or `npm run build`) Lints your project and compiles your JavaScript and CSS once for release.\n\n### Other Interesting Scripts\n\n- `dev:setup` Add other initialization scripts to your development pipeline here.\n\nThe project uses [yarn-run-all](https://www.npmjs.com/package/yarn-run-all) which makes it easy to run tasks in series or parallel using `yarn` or `npm`.\n\n## Details\n\n#### `install.json`\n\nThis is where all the [installer options](https://www.cloudflare.com/apps/developer/docs/install-json) are added for the app.\n\nDNS field is used to to configure [Cloudflare DNS Records](https://api.cloudflare.com/#dns-records-for-a-zone-properties). If you don't want to configure DNS, just delete this field.\n\n#### `src/index.js`\n\nThis is where the magic happens. Your app starts here.\n\n#### `src/styles.css`\n\nWrite your app styles here.\n\n#### `workers/worker.js`\n\nThis file is used to add a [Cloudflare Worker](https://developers.cloudflare.com/workers/) to the app. Each app may contain one worker. If you don't want to use workers, just delete this file along with the workers configuration in `install.json`.\n\n#### `media/**`\n\nContains icons, tile images, and screenshots used in your Cloudflare Apps page.\n\n[Download \u003ccode class=\"inline\"\u003emedia-templates.sketch\u003c/code\u003e](https://github.com/CloudflareApps/MediaTemplates/raw/master/media-templates.sketch)\n\n#### `webpack.config.js`\n\nSimple Webpack 4 config using Babel and CSS Loader. Please refrain from modifying the config to minify your built code.\n\n### Troubleshooting\n\nThe Cloudflare [developer documentation](https://www.cloudflare.com/apps/developer/docs/getting-started) for examples and API usage.\n\n\n## Authors\n\n- Anastas Dancha (aka [@anapsix](https://github.com/anapsix)) - original implementation\n- Nicole Corbin (aka [@ncorbin](https://github.com/ncorbin)) - logo artwork\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanapsix%2Fcloudflare-originator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanapsix%2Fcloudflare-originator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanapsix%2Fcloudflare-originator/lists"}