Sign inSign up

piscis/nitro-web-redirect

By piscis

•Updated 7 months ago

This is a redirect service based on Nitro engine (https://nitro.unjs.io/) to handle redirects.

Image
0

1.2K

piscis/nitro-web-redirect repository overview

You can find the source code of this project at: https://github.com/piscis/nitro-web-redirect⁠

⁠Environment config
REDIRECT_TARGET='https://example.com' # will redirect to the target url rewrite the request protocol to https
# OR
REDIRECT_TARGET='example.com' # will prefix the request protocol (http/https) to the target url
REDIRECT_STATUS_CODE=302 # optional, default is 301
⁠Run image
docker run \
  -e REDIRECT_TARGET=https://example.com \
  -e REDIRECT_STATUS_CODE=302 \
  -p 3000:3000 \
  piscis/nitro-web-redirect

Tag summary

Content type

Image

Digest

sha256:b1bda9cbd…

Size

57.7 MB

Last updated

7 months ago

docker pull piscis/nitro-web-redirect