A simple and lightweight URL redirector for set services and locations, easily configurable and usable.
This was mainly made for my hosted frontends - this can be used for other stuff, but you may want to tweak the design for your own use.
This project was made in the span of a few hours - although it looks intact, please be wary of bugs.
- Clone this repository to your server
- Rename
config.toml.example
toconfig.toml
- Edit
config.toml
in a text editor and configure accordingly - Install packages with
yarn
- Build the client-side page with
yarn build
- Start the server with
yarn start
This is meant to be used in conjunction with a reverse proxy, such as nginx. Make sure you're passing the Host header and using at least HTTP 1.1, like so:
location / {
proxy_pass http://127.0.0.1:8008;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote-addr;
proxy_http_version 1.1;
}
This project is licensed under GPL 3.0.