m2pool_web_backend/m2pool-modules/m2pool-chat/src/main/resources/bootstrap-test.yml

45 lines
1.2 KiB
YAML
Raw Normal View History

2025-04-15 06:39:18 +00:00
#测试环境
server:
port: 9509
compression:
enabled: true
mime-types: application/json
spring:
application:
# 应用名称
name: m2pool-chat
# profiles:
# # 环境配置
# active: test
cloud:
nacos:
discovery:
# 服务注册地址
2025-04-16 08:33:44 +00:00
server-addr: 127.0.0.1:8808
2025-04-15 06:39:18 +00:00
namespace: m2_test
group: m2_test_group
# server-addr: 127.0.0.1:8808
config:
# 配置中心地址
2025-04-16 08:33:44 +00:00
server-addr: 127.0.0.1:8808
2025-04-15 06:39:18 +00:00
# server-addr: 127.0.0.1:8808
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
namespace: m2_test
group: m2_test_group
servlet:
multipart:
max-file-size: 2MB
max-request-size: 8MB
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秒
max-connections: 100 # 最大连接数