2
2
server.port =8090
3
3
# 博客名称
4
4
blog.name =Naccl's Blog
5
- # 服务器IP或域名
5
+ # 生产环境需要修改为服务器ip或域名
6
+ # 后端服务URL https://api.naccl.top/blog
6
7
blog.api =http://localhost:${server.port}
7
- # 后台管理URL
8
+ # 后台管理URL https://admin.naccl.top
8
9
blog.cms =http://localhost:8080
9
- # 前台页面URL
10
+ # 前台界面URL https://naccl.top
10
11
blog.view =http://localhost:8081
11
12
# 数据库连接信息
12
13
spring.datasource.driver-class-name =com.mysql.cj.jdbc.Driver
@@ -29,48 +30,65 @@ logging.file=blog-api/log/blog-dev
29
30
30
31
# 1000 * 60 * 60 * 24 * 3 token过期时间
31
32
token.expireTime =259200000
32
- # 服务器签名密钥
33
+ # 生产环境务必修改此配置,否则无法保证token安全性
33
34
token.secretKey =abcdefghijklmnopqrstuvwxyz
34
35
35
- # 评论通知渠道配置
36
+ # 博主接收评论提醒方式: Telegram=tg 邮箱=mail (访客评论提醒固定为邮箱方式)
36
37
comment.notify.channel =mail
37
- # 是否开启评论
38
+ # 新评论是否默认公开
38
39
comment.default-open =true
39
40
40
- # 邮件服务器配置
41
+ # 如果选择邮箱提醒方式,则会在收到评论后向填写的邮箱自身发送一封邮件(提醒自己);如果选择tg,则填写的邮箱只作为提醒访客的发送方
42
+ # 阿里云邮箱,其它邮箱服务商配置参考关键字"spring mail 服务器"
41
43
spring.mail.host =smtp.mxhichina.com
42
- spring.mail.port =25
43
- spring.mail.username =\u90AE\u7BB1\u8D26\u53F7
44
- spring.mail.password =\u90AE\u7BB1\u5BC6\u7801
44
+ spring.mail.port =465
45
+ spring.mail.username =admin@example.com
46
+ spring.mail.password =123456
47
+ spring.mail.properties.mail.smtp.socketFactory.port =465
48
+ spring.mail.properties.mail.smtp.ssl.enable =true
45
49
46
- # Telegram机器人配置
50
+ # 如果选择邮箱提醒方式,以下可以无需修改
47
51
tg.bot.api =https://api.telegram.org/bot
52
+ # bot的token,可以从 @BotFather 处获取
48
53
tg.bot.token =1234567890:qwertyuiopasdfghjklzxcvbnm
54
+ # 自己账号和bot的聊天会话id
49
55
tg.bot.chat-id =1234567890
56
+ # 是否使用代理
50
57
tg.bot.use-proxy =false
58
+ # 是否使用反向代理
51
59
tg.bot.use-reverse-proxy =true
60
+ # 反向代理URL,请自行搭建,示例API随时可能关闭
52
61
tg.bot.reverse-proxy-url =https://tg-api-open.naccl.workers.dev
53
62
54
- # HTTP代理配置
63
+ # 代理配置,如不使用无需修改 (目前用于发送Telegram请求)
55
64
http.proxy.server.host =127.0.0.1
56
65
http.proxy.server.port =7890
57
66
http.proxy.server.timeout =10000
58
67
59
- # 文件上传配置
68
+ # 评论中QQ头像存储方式: 本地:local GitHub:github 又拍云:upyun
60
69
upload.channel =local
70
+
71
+ # 静态文件上传访问路径 Windows环境例如: C:/Users/nblog/Desktop/upload/ Linux环境例如:/home/nblog/upload/
61
72
upload.file.path =/Users/naccl/Desktop/upload/
62
73
upload.file.access-path =/image/**
63
74
upload.file.resources-locations =file:${upload.file.path}
64
75
65
- # GitHub配置
76
+ # 如果选择其它上传方式,以下可以无需修改
77
+ # GitHub token 教程见 https://naccl.github.io/PictureHosting/#/pictureHosting/help
66
78
upload.github.token =ghp_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
67
79
upload.github.username =Naccl
80
+ # 需要用作图床的GitHub仓库名
68
81
upload.github.repos =test
82
+ # 需要上传至仓库的路径 开头需要"/" 结尾不要"/"
69
83
upload.github.repos-path =/comment/avatar
70
84
71
- # 云配置
85
+ # 又拍云存储空间名称,帮助文档见 https://help.upyun.com/knowledge-base/quick_start/
72
86
upload.upyun.bucket-name =nblog
87
+ # 操作员名称
73
88
upload.upyun.username =naccl
89
+ # 操作员密码
74
90
upload.upyun.password =xxxxxxxxxxxxxxxxxxxxxxxxxxxx
91
+ # 存储路径
75
92
upload.upyun.path =/comment/avatar
76
- upload.upyun.domain =https://cdn.example.com
93
+ # CDN访问域名
94
+ upload.upyun.domain =https://cdn.example.com
0 commit comments