2022-08-27 13:21:05 +00:00
|
|
|
|
mysql:
|
|
|
|
|
dsn:
|
|
|
|
|
host: localhost
|
|
|
|
|
port: 3306
|
|
|
|
|
db: wordpress
|
|
|
|
|
user: root
|
|
|
|
|
password: root
|
|
|
|
|
charset: utf8mb4
|
|
|
|
|
pool:
|
|
|
|
|
# 最长空闲时间
|
|
|
|
|
connMaxIdleTime: 60
|
|
|
|
|
# 最大连接数
|
|
|
|
|
maxOpenConn: 100
|
|
|
|
|
# 最大空闲连接数
|
|
|
|
|
maxIdleConn: 10
|
|
|
|
|
# 连接的生命时长
|
|
|
|
|
connMaxLifetime: 236
|
2022-10-17 12:04:29 +00:00
|
|
|
|
Mail:
|
|
|
|
|
user: xx@163.com
|
|
|
|
|
alias: xx
|
|
|
|
|
pass:
|
2023-06-01 07:06:57 +00:00
|
|
|
|
host: smtp.163.com
|
|
|
|
|
port: 465
|
|
|
|
|
insecureSkipVerify: false
|
2022-10-17 12:04:29 +00:00
|
|
|
|
|
2023-01-28 15:12:46 +00:00
|
|
|
|
ssl:
|
|
|
|
|
cert: ""
|
|
|
|
|
key: ""
|
|
|
|
|
|
2023-02-05 13:06:04 +00:00
|
|
|
|
cacheTime:
|
2023-02-05 13:29:09 +00:00
|
|
|
|
# 静态资源缓存时间Cache-Control
|
2023-02-06 14:59:16 +00:00
|
|
|
|
cacheControl: 72h
|
2023-02-05 13:06:04 +00:00
|
|
|
|
# 最近文章缓存时间
|
|
|
|
|
recentPostCacheTime: 5m
|
|
|
|
|
# 分类缓存时间
|
|
|
|
|
categoryCacheTime: 5m
|
|
|
|
|
# 上下篇缓存时间
|
|
|
|
|
contextPostCacheTime: 10h
|
|
|
|
|
# 最近评论缓存时间
|
|
|
|
|
recentCommentsCacheTime: 5m
|
|
|
|
|
# 摘要缓存时间
|
|
|
|
|
digestCacheTime: 5m
|
|
|
|
|
# 文档列表id页缓存 包括默认列表、分类
|
|
|
|
|
postListCacheTime: 1h
|
|
|
|
|
# 搜索文档id缓存时间
|
|
|
|
|
searchPostCacheTime: 5m
|
|
|
|
|
# 月归档文章id缓存时间
|
|
|
|
|
monthPostCacheTime: 1h
|
|
|
|
|
# 文档数据缓存时间
|
|
|
|
|
postDataCacheTime: 1h
|
|
|
|
|
# 文章评论缓存时间
|
|
|
|
|
postCommentsCacheTime: 5m
|
|
|
|
|
# 定时清理缓存周期时间
|
|
|
|
|
crontabClearCacheTime: 5m
|
|
|
|
|
# 文档最大id缓存时间
|
|
|
|
|
maxPostIdCacheTime: 1h
|
|
|
|
|
# 用户信息缓存时间
|
|
|
|
|
userInfoCacheTime: 24h
|
|
|
|
|
# 单独评论缓存时间
|
|
|
|
|
commentsCacheTime: 24h
|
2023-02-10 13:23:30 +00:00
|
|
|
|
# 随机sleep时间
|
|
|
|
|
sleepTime: [ 1s,3s ]
|
2023-04-18 13:05:37 +00:00
|
|
|
|
# 摘要字数 >0截取指定字数 =0输出出空字符 <0为不截取,原样输出
|
2022-09-26 08:35:38 +00:00
|
|
|
|
digestWordCount: 300
|
2023-04-18 13:05:37 +00:00
|
|
|
|
# 摘要允许的标签 默认为<a><b><blockquote><br><cite><code><dd><del><div><dl><dt><em><h1><h2><h3><h4><h5><h6><i><img><li><ol><p><pre><span><strong><ul>
|
|
|
|
|
digestTag: "<a><b><blockquote><br><cite><code><dd><del><div><dl><dt><em><h1><h2><h3><h4><h5><h6><i><img><li><ol><p><pre><span><strong><ul>"
|
2022-09-29 09:23:02 +00:00
|
|
|
|
# 到达指定并发请求数时随机sleep
|
|
|
|
|
maxRequestSleepNum: 100
|
|
|
|
|
# 全局最大请求数,超过直接403
|
|
|
|
|
maxRequestNum: 500
|
|
|
|
|
# 单ip同时最大搜索请求数
|
|
|
|
|
singleIpSearchNum: 10
|
2023-04-10 14:28:16 +00:00
|
|
|
|
# 错误日志输出路径 stdout|stderr|file path 默认为stderr
|
2023-04-07 14:59:07 +00:00
|
|
|
|
logOutput: err.log
|
2022-10-07 15:48:42 +00:00
|
|
|
|
# Gzip
|
|
|
|
|
gzip: false
|
2023-04-10 14:28:16 +00:00
|
|
|
|
# 提交评论url host需为ip形式
|
|
|
|
|
postCommentUrl: http://127.0.0.1/wp-comments-post.php
|
2022-10-10 13:07:39 +00:00
|
|
|
|
# TrustIps
|
|
|
|
|
trustIps: []
|
2023-02-10 13:23:30 +00:00
|
|
|
|
# 分页器间隔数
|
|
|
|
|
paginationStep: 1
|
|
|
|
|
# 显示查询的sql语句
|
|
|
|
|
showQuerySql: false
|
2022-10-10 13:07:39 +00:00
|
|
|
|
# trust servername 信任的域名
|
|
|
|
|
trustServerNames: ["xy.test","blog.xy.test"]
|
2023-01-22 10:01:04 +00:00
|
|
|
|
# 主题 为空值为option template,没有就默认为twentyfifteen
|
|
|
|
|
theme: "twentyfifteen"
|
|
|
|
|
# 文档排序默认升序还是降序
|
2023-01-30 12:16:03 +00:00
|
|
|
|
postOrder: "desc"
|
2023-05-31 13:54:23 +00:00
|
|
|
|
# WordPress path
|
|
|
|
|
wpDir: "/var/www/wordpress"
|
2023-01-30 12:16:03 +00:00
|
|
|
|
# 上传的目录
|
2023-01-31 16:58:42 +00:00
|
|
|
|
uploadDir: ""
|
|
|
|
|
# pprof route path 为空表示不开启pprof,否则为pprof的路由
|
2023-02-09 15:15:10 +00:00
|
|
|
|
pprof: "/debug/pprof"
|
2023-05-04 13:06:27 +00:00
|
|
|
|
# 要使用的程序插件名
|
2023-03-02 15:49:28 +00:00
|
|
|
|
plugins: ["enlightjs"]
|
2023-05-04 13:06:27 +00:00
|
|
|
|
# 插件存放路径
|
|
|
|
|
pluginPath: "./plugins"
|
2023-02-09 15:15:10 +00:00
|
|
|
|
# 列表页面post使用的插件
|
2023-05-13 10:51:49 +00:00
|
|
|
|
listPagePlugins: ["digest"]
|
|
|
|
|
# 额外引入的脚本 第一个为head 第二个为footer
|
|
|
|
|
externScript: ["",""]
|