SCDerox / mini

RMC's Mini URL shortener

Home Page:https://mini.rmcprod.me

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


A mini URL shortener which I did as a project for fun.

How to set up

  1. Clone or download the repo.
  2. Run npm i in the repo folder.
  3. Change the config to your needs (see section below).
  4. Run npm start and enjoy!

Config

Alter the values in the config.json. These are the options you can set:

  • baseURL: The URL the redirection will be performed on. Must have a trailing /.
  • appPort: The port the content will be served on. Default is 8151
  • cooldown: Per-IP Cooldown for generating links in seconds. Default is 60, that means an IP is allowed one request within 60 seconds.
  • expiration: For how long a link will be kept. Default is 24 Hours.

About

RMC's Mini URL shortener

https://mini.rmcprod.me


Languages

Language:EJS 38.4%Language:JavaScript 35.3%Language:CSS 23.2%Language:Dockerfile 3.2%