Skip to content

An app whose sole purpose is to redirect requests to a given url

License

Notifications You must be signed in to change notification settings

dokku/redirect-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

redirect-app

An app whose sole purpose is to redirect requests to a given url.

Requirements

  • Go 1.19+

Usage

go build

# set some env vars
export REDIRECT_URL=https://google.com

# optionally define an alternative PORT (default=5000)
export PORT=3000

# optionally define an alternative redirect status code (default=302)
export REDIRECT_STATUS_CODE=301

# start the server
./redirect-app

# in another shell
curl -L http://localhost:5000

About

An app whose sole purpose is to redirect requests to a given url

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published