Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 634 Bytes

README.md

File metadata and controls

13 lines (8 loc) · 634 Bytes

URL Minifier Service

Minifier service that translates HTTP requests to DNS URI record lookups and redirects.

Request paths are converted to subdomains and appended to the request hostname before looking for a record. For example, https://goto.brinkmanlab.ca/foo/bar will query the DNS URI record bar.foo.goto.brinkmanlab.ca.

Any URL query parameters in the request url are appended to the redirect url.

Deployment

This script is intended to be deployed as a CloudFlare worker. Alternatively it can be independently hosted using the cloudflare-workers-local NPM package.