-
Notifications
You must be signed in to change notification settings - Fork 117
/
env.example.yaml
110 lines (93 loc) · 3.3 KB
/
env.example.yaml
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
# 项目相关设置,可以直接修改这个或者复制这个后再填充参数
AppUrl: ""
AppImgUrl: "" # 一般默认是 AppUrl + /static/uploads/images/
DefaultLimit: "20"
DefaultIndexLimit: "10"
# 数据库相关设置
DbUser: ""
DbPassword: ""
DbPort: "3306"
DbDataBase: "go-blog"
DbHost: ""
# redis相关设置
RedisAddr: ""
RedisPwd: ""
RedisDb: 0
# github gitalk 相关设置
GithubName: ""
GithubRepo: ""
GithubClientId: ""
GithubClientSecret: ""
GithubLabels: "Gitalk"
# 七牛相关设置
QiNiuUploadImg: true
QiNiuHostName: ""
QiNiuAccessKey: ""
QiNiuSecretKey: ""
QiNiuBucket: ""
QiNiuZone: "HUABEI" # you can use "HUADONG","HUABEI","BEIMEI","HUANAN","XINJIAPO"
# 报警相关设置 推荐邮件,因为我就实现了这个功能..
AlarmType: "mail,wechat"
MailUser: ""
MailPwd: ""
MailHost: ""
# 文章加入了 hashid的 功能,不过为了以前文章的迁移,这个功能写了,但并没有用,
HashIdSalt: "i must add a salt what is only for me"
HashIdLength: 8
# jwt 相关设置,请一定要单独设置这个,
JwtIss: ""
JwtAudience: ""
JwtJti: ""
JwtSecretKey: ""
JwtTokenLife: 3
# 腾讯的验证码,底层包有实现,不过我最后没用到这个项目里..主要是忘记了这事,自己找了个验证码的包自己实现了..
QCaptchaAid: ""
QCaptchaSecretKey: ""
# 项目有备份功能,默认都是这个目录.所以打包后,这个目录一定要带着,且有写权限
BackUpFilePath: "./backup/"
BackUpDuration: "@daily"
BackUpSentTo: "[email protected]"
# 文章图 可以上传到本地也可以上传到七牛,功能已实现,默认同时上传,以防图片丢了..
DataCacheTimeDuration: 720
ImgUploadUrl: "" # AppUrl +"/console/post/imgUpload" 默认是你的项目地址+ /console/post/imgUpload
ImgUploadDst: "./static/uploads/images/" # 默认目录
ImgUploadBoth: true # img will upload to qiniu and your server local
# 缓存key
CateListKey: "all:cate:sort" # 后台分类列表默认缓存key
TagListKey: "all:tag" # 后台标签列表默认缓存key
# 网站首页进本配置
Theme: 0 # 以防以后多个主题,虽然我并没有做其他主题
Title: "叶落山城秋"
Keywords: "叶落山城秋"
Description: "叶落山城"
RecordNumber: "000-0000"
UserCnt: 2 # 允许最多注册几个用户,默认2个
Autor: "叶落山城秋"
Email: ""
# 前台一些缓存参数的key
PostIndexKey: "index:all:post:list"
TagPostIndexKey: "index:all:tag:post:list"
CatePostIndexKey: "index:all:cate:post:list"
LinkIndexKey: "index:all:link:list"
SystemIndexKey: "index:all:system:list"
PostDetailIndexKey: "index:post:detail"
ArchivesKey: "index:archives:list"
# 额外的js
OtherScript: "<script type=\"text/javascript\"></script>"
# 前台的静态文件
ThemeJs: "/static/home/assets/js"
ThemeCss: "/static/home/assets/css"
ThemeImg: "/static/home/assets/img"
ThemeFancyboxCss: "/static/home/assets/fancybox"
ThemeFancyboxJs: "/static/home/assets/fancybox"
ThemeHLightCss: "/static/home/assets/highlightjs"
ThemeHLightJs: "/static/home/assets/highlightjs"
ThemeShareCss: "/static/home/assets/css"
ThemeShareJs: "/static/home/assets/js"
ThemeArchivesJs: "/static/home/assets/js"
ThemeArchivesCss: "/static/home/assets/css"
ThemeNiceImg: "/static/home/assets/img"
ThemeAllCss: "/static/home/assets/css"
ThemeIndexImg: "/static/home/assets/img"
ThemeCateImg: "/static/home/assets/img"
ThemeTagImg: "/static/home/assets/img"