๐Ÿ“ฆ willnorris / redirect

A simple redirecting web server

โ˜… 0 stars โ‘‚ 0 forks ๐Ÿ‘ 0 watching โš–๏ธ MIT License
๐Ÿ“ฅ Clone https://github.com/willnorris/redirect.git
HTTPS git clone https://github.com/willnorris/redirect.git
SSH git clone git@github.com:willnorris/redirect.git
CLI gh repo clone willnorris/redirect
Will Norris Will Norris add docker github action 665a45b 2 years ago ๐Ÿ“ History
๐Ÿ“‚ main View all commits โ†’
๐Ÿ“ .github
๐Ÿ“„ Dockerfile
๐Ÿ“„ go.mod
๐Ÿ“„ LICENSE
๐Ÿ“„ README.md
๐Ÿ“„ redirect.go
๐Ÿ“„ README.md

redirect

A simple webserver that redirects all requests to a specified target URL. The path and query string from the original request are included in the redirect.

This is mainly intended to provide the very simple kind of redirect service domain registrars sometimes provide.

Environment variables:

  • TARGET - Absolute URL of redirect target. Required.
  • PORT - Listening port. Default: 8080
  • STATUS - HTTP status code in redirect response. Default: 302