GithubHelp home page GithubHelp logo

msfjarvis / redirekt Goto Github PK

View Code? Open in Web Editor NEW
15.0 2.0 0.0 432 KB

Super simple Cloudflare Worker that performs redirections and serves a static site from Cloudflare Workers KV

License: Apache License 2.0

TypeScript 87.23% JavaScript 10.74% Nix 2.03%
typescript cloudflare-worker redirections

redirekt's Introduction

redirekt

A dead simple and very stupid Cloudflare Worker that does straightforward redirections to GitHub. As of recently, it also serves a static site out of Cloudflare's Workers KV product.

Example redirections

https://msfjarvis.dev/g => https://github.com/msfjarvis
https://msfjarvis.dev/g/redirekt => https://github.com/msfjarvis/redirekt
https://msfjarvis.dev/g/redirekt/8436184361 => https://github.com/msfjarvis/redirekt/commit/8436184361
https://msfjarvis.dev/aps => https://github.com/android-password-store/Android-Password-Store
https://msfjarvis.dev/aps/f56086cd78e8 => https://github.com/android-password-store/Android-Password-Store/commit/f56086cd78e8
https://msfjarvis.dev/aps/issue/1232 => https://github.com/Android-Password-Store/Android-Password-Store/issues/1232

How to use

The redirects are specific to my personal use so you might want to tweak/remove them before deploying to your own website.

Follow the Workers documentation to install wrangler, then copy wrangler.example.toml to wrangler.toml and update the routes and vars fields. You can also add your zone and account ID there, or use the environment variables as recommended in the Workers documentation.

Run wrangler publish and that should be it!

redirekt's People

Contributors

dependabot[bot] avatar msfjarvis avatar renovate-bot avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.