schort is a tiny link shortener written in python3 and flask
Go to file
sqozz 51e8e32dee Add resolve test 2018-04-08 16:00:19 +02:00
data Created empty data folder 2016-02-11 00:04:28 +01:00
static/css Improved flexibility on different zoom and screen sizes 2016-02-13 07:15:03 +01:00
templates Improved API help and style 2016-02-13 07:01:42 +01:00
tests Add resolve test 2018-04-08 16:00:19 +02:00
.gitignore Merge branch 'master' of https://github.com/Sqozz/schort 2016-02-10 13:41:23 +01:00
LICENSE Initial commit 2016-02-10 13:38:40 +01:00
README.md typo in README.md fixed 2016-04-04 16:14:13 +02:00
schort.fcgi Added FastCGI wrapper based on flipflop 2016-02-10 21:40:07 +01:00
schort.py Add vim magic line 2018-04-07 20:50:04 +02:00
schort.wsgi Added wsgi script 2016-02-10 23:30:52 +01:00

README.md

schort - It's just a tiny link shortener

Installation instructions:

  1. Clone this repo into e.g. /opt/schort
  2. Create a user and adjust permissions to write at least into /opt/schort/data
  3. Install requirements (see below)
  4. Configure your wsgi or fcgi server
  5. Configure your webserver that he talks to your wsgi/fcgi server

Requirements:

Module Explanation
Flask Flask handels all HTTP-stuff in this application
sqlite3 In gentoo this useflag needs to be set while compiling python3

µWSGI

The schort.wsgi file can be set as UWSGI_PROGRAM if you use uWSGI. Keep in mind, that the UWSGI_DIR needs to be set to the path where schort.py resists. This is because schort is not installed in a global scope. Since schort.wsgi imports schort.py it needs his workspace in the same folder.