2025-04-15 14:39:18 +08:00
|
|
|
|
server:
|
|
|
|
|
|
port: 9209
|
|
|
|
|
|
compression:
|
|
|
|
|
|
enabled: true
|
|
|
|
|
|
mime-types: application/json
|
|
|
|
|
|
|
|
|
|
|
|
spring:
|
|
|
|
|
|
#邮箱基本配置
|
|
|
|
|
|
mail:
|
|
|
|
|
|
# 配置在limit_time内,用户可以发送limit次验证码
|
|
|
|
|
|
limit: 2 这个是我额外的配置,结合邮箱服务用的
|
|
|
|
|
|
limitTime: 10 这个是我额外的配置
|
|
|
|
|
|
#配置smtp服务主机地址
|
|
|
|
|
|
# sina smtp.sina.cn
|
|
|
|
|
|
# aliyun smtp.aliyun.com
|
|
|
|
|
|
# 163 smtp.163.com 端口号465或994
|
|
|
|
|
|
host: mail.privateemail.com
|
|
|
|
|
|
#发送者邮箱
|
|
|
|
|
|
username: support@m2pool.cc
|
|
|
|
|
|
#配置密码,注意不是真正的密码,而是刚刚申请到的授权码
|
|
|
|
|
|
# password:
|
|
|
|
|
|
# password: m2pool2024@!
|
|
|
|
|
|
# password: axvm-zfgx-cgcg-qhhu
|
|
|
|
|
|
password: m2pool2024@!
|
|
|
|
|
|
#端口号
|
|
|
|
|
|
port: 587
|
|
|
|
|
|
#默认的邮件编码为UTF-8
|
|
|
|
|
|
default-encoding: UTF-8
|
|
|
|
|
|
#其他参数
|
|
|
|
|
|
properties:
|
|
|
|
|
|
mail:
|
|
|
|
|
|
#配置SSL 加密工厂
|
|
|
|
|
|
smtp:
|
|
|
|
|
|
ssl:
|
|
|
|
|
|
#本地测试,先放开ssl
|
|
|
|
|
|
enable: false
|
|
|
|
|
|
required: false
|
|
|
|
|
|
#开启debug模式,这样邮件发送过程的日志会在控制台打印出来,方便排查错误
|
|
|
|
|
|
debug: false
|
|
|
|
|
|
socketFactory:
|
|
|
|
|
|
class: javax.net.ssl.SSLSocketFactory
|
|
|
|
|
|
|
|
|
|
|
|
application:
|
|
|
|
|
|
# 应用名称
|
|
|
|
|
|
name: m2pool-chat
|
|
|
|
|
|
# profiles:
|
|
|
|
|
|
# # 环境配置
|
|
|
|
|
|
# active: prod
|
|
|
|
|
|
cloud:
|
|
|
|
|
|
nacos:
|
|
|
|
|
|
discovery:
|
|
|
|
|
|
# 服务注册地址
|
2025-05-19 15:12:39 +08:00
|
|
|
|
server-addr: 127.0.0.1:8808
|
2025-04-15 14:39:18 +08:00
|
|
|
|
namespace: m2_prod
|
|
|
|
|
|
group: m2_prod_group
|
2025-05-19 15:12:39 +08:00
|
|
|
|
# server-addr: 127.0.0.1:8808
|
2025-04-15 14:39:18 +08:00
|
|
|
|
config:
|
|
|
|
|
|
# 配置中心地址
|
2025-05-19 15:12:39 +08:00
|
|
|
|
server-addr: 127.0.0.1:8808
|
|
|
|
|
|
# server-addr: 127.0.0.1:8808
|
2025-04-15 14:39:18 +08:00
|
|
|
|
# 配置文件格式
|
|
|
|
|
|
file-extension: yml
|
|
|
|
|
|
# 共享配置
|
|
|
|
|
|
shared-configs:
|
|
|
|
|
|
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
|
|
|
|
|
namespace: m2_prod
|
|
|
|
|
|
group: m2_prod_group
|
|
|
|
|
|
servlet:
|
|
|
|
|
|
multipart:
|
|
|
|
|
|
max-file-size: 2MB
|
|
|
|
|
|
max-request-size: 8MB
|
|
|
|
|
|
|
2025-04-16 16:15:53 +08:00
|
|
|
|
websocket:
|
|
|
|
|
|
transport:
|
|
|
|
|
|
message-size-limit: 1500 # 消息大小限制 1.5k 约500汉字
|
|
|
|
|
|
send-time-limit: 5000 # 发送超时时间 5秒
|
|
|
|
|
|
send-buffer-size-limit: 65536 # 发送缓冲区大小 64K
|
|
|
|
|
|
time-to-first-message: 5000 # 首次消息超时时间 5秒
|
2025-05-14 15:08:09 +08:00
|
|
|
|
max-connections: 100 # 最大连接数
|