Sign inSign up

mbround18/redirect

By mbround18

Updated 13 days ago

Simple redirection tool! Ready to use!

Image
Developer tools
Web servers
0

1.8K

mbround18/redirect repository overview

Redirect

Extremely lightweight redirecting agent that uses less than 5MB ram to run redirections. For an example visit links.boop.ninja/github

Usage CLI

  1. Set ENV Variable REDIRECTS

    1. Examples:
      REDIRECTS="google>https://google.com|discord>https://discord.gg/d5N7JwzPgt" 
      

    NOTE! both > and | are not URL safe, these are used to designate how the app breaks the variable up. You can include newlines in the variable to make it easier to read. If your url uses > or | please url encode it!

  2. Set ENV variable DEFAULT_ENDPOINT to point to the url you which to direct any other traffic towards.

  3. Launch the redirect agent.

Usage Docker

docker run \
   -p 8000:8000 \
   -e DEFAULT_ENDPOINT="https://github.com/mbround18" \
   -e REDIRECTS="google>https://google.com|discord>https://discord.gg/d5N7JwzPgt" \
   mbround18/redirect:latest

Usage Docker Compose

version: "3.9"  # optional since v1.27.0
services:
  web:
    build: .
    image: mbround18/redirect:latest
    environment:
      - 'DEFAULT_ENDPOINT="https://github.com/mbround18"'
      - 'REDIRECTS="google>https://google.com|discord>https://discord.gg/d5N7JwzPgt"'
    ports:
      - "8000:8000"

Tag summary

Content type

Image

Digest

sha256:1d815ac02

Size

51.3 MB

Last updated

over 1 year ago

docker pull mbround18/redirect