Skip to content

webmocha/redirector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Redirector

Docker Repository on Quay

Takes any request and redirects it to $TARGET

uses 302 StatusFound by default

Usage

env TARGET=https://www.someplace.com bin/redirector

Permanent Redirect

env TARGET=https://www.someplace.com REDIRECT=301 bin/redirector

Dev

ag -g '\.go' . | entr sh -c 'clear && env PORT=8080 TARGET=https://www.someplace.com make dev'

Docker

docker run -d \
  --name redirector \
  -e TARGET="https://www.someplace.com" \
  -p 8080:8080 \
  quay.io/webmochallc/redirector:latest

About

simple lightweight http redirector

Resources

Stars

Watchers

Forks

Packages

No packages published