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
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 variable | description |
---|---|
target_host | the target domain that the visitor will be redirected to. Format should be https://example.com |
append_uri | if true the URI path will append to the Location header. resulting in a redirect with URI like https://example.com/path |
log_format | Set default settings for different cloud providers. Available formats are stackdriver |
http_status | set 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.