http-redirect

module
v0.0.0-...-b0c6047 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2020 License: MIT

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 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.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL