Added link shortener feature.

Now app can either handle pastes or shorten links, but not both.
This commit is contained in:
eleksir
2017-03-18 16:14:52 +03:00
parent cd72ee3124
commit fbc8445b73
3 changed files with 176 additions and 30 deletions

View File

@@ -1,15 +1,14 @@
[app]
; either "paste" or "shortener"
; reserved for future releases, not used
; either "paste" or "short"
type = paste
; relative path to application, as it seen in browser
; must end with '/'
baseurl = /
; if you decide to put images|css on separate domain, write it here
; or leave it same as siteaddress
; for now it is only /bg_logo.png
; for now it is only /bg_logo.png for paste and /logo.png for link shortener
cdnaddress = http://127.0.0.1/
; hostname where app lives, with http(s) prefix
siteaddress = http://127.0.0.1/
; path, where db created|stored, if not exist, it will be created
dbpath = paste/paste.sqlite
dbpath = data/db.sqlite