Skip to content

A simple container to redirect traffic to another server

License

Notifications You must be signed in to change notification settings

kevinoneill/simple-redirect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple-redirect

A simple container to redirect traffic to another server, based on nginx:mainline-alpine.

I built this to use inside a kubernetes cluster to route www.example.com/<path> to example.com/<path>

Simple Redirect requires a single environment variable REDIRECT_SERVER which is the server to redirect to. The original scheme and path of the request are maintained.

Resources

Configuration

  • REDIRECT_SERVER - server to redirect to, eg. www.google.com

Running

Docker

docker run -e REDIRECT_SERVER=www.google.com -p 9898:80 unbiasedlight/simple-redirect

Alternatives

docker-nginx-redirect - which also deals with fixed paths

About

A simple container to redirect traffic to another server

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages