RealMelkor / SimpleShortener

URL shortener

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple Shortener

A program to self-host a URL shortener as a web server or as a fcgi program.

Live-Demo

FastCGI Web servers configuration

To run Simple Shortener as a FastCGI program, the fcgi mode needs to be enabled first in the simpleshortener.yaml configuration file.

Configuration example for nginx :

location / {
    fastcgi_pass    127.0.0.1:9000;
    include         fastcgi_params;
}

Configuration example for OpenBSD httpd :

location * {
    fastcgi socket tcp localhost 9000
}

Static files

The files in the static folder must be modified before compilation since they are embedded into the executable.

Configuration file

The simpleshortener.yaml configuration file needs to be in either the working directory of the executable, in '/etc/simpleshortener', or in '/usr/local/etc/simpleshortener'.

About

URL shortener

License:ISC License


Languages

Language:Go 81.4%Language:HTML 15.3%Language:Shell 3.3%