Skip to content

A simple and lightweight URL shortener for set services and locations

License

Notifications You must be signed in to change notification settings

ggtylerr/shortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shortener

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.

Installation

  1. Clone this repository to your server
  2. Rename config.toml.example to config.toml
  3. Edit config.toml in a text editor and configure accordingly
  4. Install packages with yarn
  5. Build the client-side page with yarn build
  6. 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;
}

License

This project is licensed under GPL 3.0.

About

A simple and lightweight URL shortener for set services and locations

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published