Sign inSign up

codekoalas/redirect

By codekoalas

•Updated almost 10 years ago

Alpine and NGINX based site redirector

Image
0

433

codekoalas/redirect repository overview

⁠redirect.docker

catch all http redirector, useful for http -> https redirects

Insanely fast and small! Based on alpine and nginx.

⁠Launching

docker run -d -e REDIRECT="https://www.google.com/" -expose 80 codekoalas/redirect

Now you should be able to browse to http://localhost/any/path and have your browser redirected to https://www.google.com/any/path.

⁠Environment variables

⁠WORKER_CONNECTIONS

Defaults to: 1024

⁠HTTP_PORT

Defaults to: 80

⁠REDIRECT

Defaults to: https://$host

Tag summary

Content type

Image

Digest

Size

3.8 MB

Last updated

about 10 years ago

docker pull codekoalas/redirect