Add the tools folder
This commit is contained in:
parent
2797ba97f1
commit
d1edf9e222
7 changed files with 537 additions and 5 deletions
22
tools/update/config.go
Normal file
22
tools/update/config.go
Normal file
|
@ -0,0 +1,22 @@
|
|||
package main
|
||||
|
||||
const (
|
||||
PORT = "8080"
|
||||
DB_IP = "127.0.0.1"
|
||||
DB_NAME = "trantor"
|
||||
BOOKS_COLL = "books"
|
||||
NEW_BOOKS_COLL = "new"
|
||||
USERS_COLL = "users"
|
||||
PASS_SALT = "ImperialLibSalt"
|
||||
TAGS_DISPLAY = 50
|
||||
SEARCH_ITEMS_PAGE = 10
|
||||
TEMPLATE_PATH = "templates/"
|
||||
BOOKS_PATH = "books/"
|
||||
COVER_PATH = "cover/"
|
||||
NEW_PATH = "new/"
|
||||
CSS_PATH = "css/"
|
||||
JS_PATH = "js/"
|
||||
IMG_PATH = "img/"
|
||||
RESIZE_CMD = "/usr/bin/convert -resize 300 -quality 60 "
|
||||
RESIZE_THUMB_CMD = "/usr/bin/convert -resize 60 -quality 60 "
|
||||
)
|
Reference in a new issue