Categorygithub.com/Kansuler/http-redirect
repository
0.0.0-20201024120740-b0c604727d08
Repository: https://github.com/kansuler/http-redirect.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

Kansuler/http-redirect

License Version Codacy Badge

A small container package that are configurable through environment variables to redirect to another domain.

Docker hub image: kansuler/http-redirect

API and detailed documentation can be found at https://godoc.org/github.com/Kansuler/http-redirect

environment variabledescription
target_hostthe target domain that the visitor will be redirected to. Format should be https://example.com
append_uriif true the URI path will append to the Location header. resulting in a redirect with URI like https://example.com/path
log_formatSet default settings for different cloud providers. Available formats are stackdriver
http_statusset either 307 temporary redirect or 308 permanent redirect. Default is 307

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.