-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblog_default.toml
64 lines (59 loc) · 1.19 KB
/
blog_default.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
[config]
[blacklist]
expiry = 600
limit = 3
[common]
addr = ":8888"
assets = "ROOT/assets"
images = "/tmp/images"
db_file = "/tmp/blog.db"
# affect remote addr
proxy_mode = true
[common.logging]
roll_size = 10 # MB
roll_interval = 720 # hour
filename = "/tmp/blog.log"
level = "info" # level greater or equal than
panic_on_fatal = true # don't panic when log.Fatal is called
[session]
expiry = 3600 # second
key = "serenity"
auth_key = "elder"
auth_val = "+1s"
[model]
title = "Serenity"
tmpl_root = "ROOT/assets/templates"
[model.edit]
api = "/edit/:id"
tmpl = "edit.html"
[model.login]
api = "/login"
tmpl = "login.html"
[model.manage]
main_api = "/manage"
sub_api = "/manage/:sub"
main= "manage.html"
setting = "setting.html"
[model.home]
api = "/"
tmpl = "home.html"
[model.article]
api = "/article/:id"
tmpl = "article.html"
[service]
assets = "/static/*files"
image = "/image/*files"
login = "/api/login"
edit = "/api/edit/:id"
manage = "/api/manage"
navi = "/api/navi"
user = "/api/user"
[mimes]
# user defined mime, using the "mime" package if this is not present
# key is case insensitive
"c" = "text/plain"
"cc" = "text/plain"
"cpp" = "text/plain"
"h" = "text/plain"
"asm" = "text/plain"
"s" = "text/plain"