Skip to content

Commit 189f1a2

Browse files
authored
Update application-dev.properties
1 parent 7397c3d commit 189f1a2

File tree

1 file changed

+34
-16
lines changed

1 file changed

+34
-16
lines changed

blog-api/src/main/resources/application-dev.properties

Lines changed: 34 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22
server.port=8090
33
# 博客名称
44
blog.name=Naccl's Blog
5-
# 服务器IP或域名
5+
# 生产环境需要修改为服务器ip或域名
6+
# 后端服务URL https://api.naccl.top/blog
67
blog.api=http://localhost:${server.port}
7-
# 后台管理URL
8+
# 后台管理URL https://admin.naccl.top
89
blog.cms=http://localhost:8080
9-
# 前台页面URL
10+
# 前台界面URL https://naccl.top
1011
blog.view=http://localhost:8081
1112
# 数据库连接信息
1213
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
@@ -29,48 +30,65 @@ logging.file=blog-api/log/blog-dev
2930

3031
# 1000 * 60 * 60 * 24 * 3 token过期时间
3132
token.expireTime=259200000
32-
# 服务器签名密钥
33+
# 生产环境务必修改此配置,否则无法保证token安全性
3334
token.secretKey=abcdefghijklmnopqrstuvwxyz
3435

35-
# 评论通知渠道配置
36+
# 博主接收评论提醒方式: Telegram=tg 邮箱=mail (访客评论提醒固定为邮箱方式)
3637
comment.notify.channel=mail
37-
# 是否开启评论
38+
# 新评论是否默认公开
3839
comment.default-open=true
3940

40-
# 邮件服务器配置
41+
# 如果选择邮箱提醒方式,则会在收到评论后向填写的邮箱自身发送一封邮件(提醒自己);如果选择tg,则填写的邮箱只作为提醒访客的发送方
42+
# 阿里云邮箱,其它邮箱服务商配置参考关键字"spring mail 服务器"
4143
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
4549

46-
# Telegram机器人配置
50+
# 如果选择邮箱提醒方式,以下可以无需修改
4751
tg.bot.api=https://api.telegram.org/bot
52+
# bot的token,可以从 @BotFather 处获取
4853
tg.bot.token=1234567890:qwertyuiopasdfghjklzxcvbnm
54+
# 自己账号和bot的聊天会话id
4955
tg.bot.chat-id=1234567890
56+
# 是否使用代理
5057
tg.bot.use-proxy=false
58+
# 是否使用反向代理
5159
tg.bot.use-reverse-proxy=true
60+
# 反向代理URL,请自行搭建,示例API随时可能关闭
5261
tg.bot.reverse-proxy-url=https://tg-api-open.naccl.workers.dev
5362

54-
# HTTP代理配置
63+
# 代理配置,如不使用无需修改 (目前用于发送Telegram请求)
5564
http.proxy.server.host=127.0.0.1
5665
http.proxy.server.port=7890
5766
http.proxy.server.timeout=10000
5867

59-
# 文件上传配置
68+
# 评论中QQ头像存储方式: 本地:local GitHub:github 又拍云:upyun
6069
upload.channel=local
70+
71+
# 静态文件上传访问路径 Windows环境例如: C:/Users/nblog/Desktop/upload/ Linux环境例如:/home/nblog/upload/
6172
upload.file.path=/Users/naccl/Desktop/upload/
6273
upload.file.access-path=/image/**
6374
upload.file.resources-locations=file:${upload.file.path}
6475

65-
# GitHub配置
76+
# 如果选择其它上传方式,以下可以无需修改
77+
# GitHub token 教程见 https://naccl.github.io/PictureHosting/#/pictureHosting/help
6678
upload.github.token=ghp_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
6779
upload.github.username=Naccl
80+
# 需要用作图床的GitHub仓库名
6881
upload.github.repos=test
82+
# 需要上传至仓库的路径 开头需要"/" 结尾不要"/"
6983
upload.github.repos-path=/comment/avatar
7084

71-
# 云配置
85+
# 又拍云存储空间名称,帮助文档见 https://help.upyun.com/knowledge-base/quick_start/
7286
upload.upyun.bucket-name=nblog
87+
# 操作员名称
7388
upload.upyun.username=naccl
89+
# 操作员密码
7490
upload.upyun.password=xxxxxxxxxxxxxxxxxxxxxxxxxxxx
91+
# 存储路径
7592
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

Comments
 (0)