Sign inSign up

openlaw/instance-redirector

By openlaw

•Updated over 6 years ago

Image
0

184

openlaw/instance-redirector repository overview

⁠instance-redirector service

Quick "does one thing well" service to serve a HTTP redirect to a client request for *.openlaw.io to a different URL.

See redirector_test.go for a list of redirection cases.

⁠Usage

Options for instance-redirector:
  -addr string
        address (default ":8080")
  -v    verbose logging

Addr is a standard TCP network interface address (e.g. :8080 or 127.0.0.1:3000), it will also look for the environment variable $REDIRECTOR_ADDR as a default if none is specified.

⁠Deployment

Has an included tiny Docker image for usage as a standalone service.

For deployment on GKE, it can just just be deployed as a Cloud Function without a container at all, as Google CF handles Go http.HandleFunc functions natively.

Tag summary

Content type

Image

Digest

Size

2.8 MB

Last updated

over 6 years ago

docker pull openlaw/instance-redirector