Skip to content

Simple server to redirect based on host and path redirects from a YAML file

Notifications You must be signed in to change notification settings

fixate/redirect-server

Repository files navigation

Redirect Server

Install:

See releases or build repo using make build or make builddev

TODO:

  • Use CI for github releases for multiple targets
  • Make go get work to fetch the command (I'm new to go so if people start caring about this project I'll take things further)

Usage:

redirect-server --manifest manifest.yml

manifest.yml

---
options:
	# Will redirect all http request to HTTPS
  enforcehttps: true

redirects:
  - host: myoldsite.com
    target: https://mynewsite.com/

  - host: localhost:3000
    path: '*/blah'
    target: http://fixate.it/$1

TODO:

  • Tests

About

Simple server to redirect based on host and path redirects from a YAML file

Resources

Stars

Watchers

Forks

Packages

No packages published