added ini-file support for application settings

This commit is contained in:
eleksir
2017-03-18 12:18:48 +03:00
parent 5b1653ca11
commit 6f3789bfdc
2 changed files with 29 additions and 12 deletions

15
app.ini Normal file
View File

@@ -0,0 +1,15 @@
[app]
; either "paste" or "shortener"
; reserved for future releases, not used
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
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