feat(config): 为Nacos配置中心添加认证支持

- 在discovery配置中增加username和password字段
- 在config配置中增加username和password字段
- 更新日志配置URL以包含认证参数
- 注释掉原始无认证的日志配置URL
- 在事件服务中修改幅度值设置逻辑,同时支持VVADEPTH和RMS参数
This commit is contained in:
xy
2026-06-25 15:54:52 +08:00
parent cf6e07eec1
commit 14a8a4344a
6 changed files with 26 additions and 7 deletions

View File

@@ -23,9 +23,13 @@ spring:
discovery:
ip: @service.server.url@
server-addr: @nacos.url@
username: @nacos.username@
password: @nacos.password@
namespace: @nacos.namespace@
config:
server-addr: @nacos.url@
username: @nacos.username@
password: @nacos.password@
namespace: @nacos.namespace@
file-extension: yaml
shared-configs:
@@ -39,6 +43,7 @@ spring:
#项目日志的配置
logging:
# config: http://@nacos.url@/nacos/v1/cs/configs?tenant=@nacos.namespace@&username=@nacos.username@&password=@nacos.password@&group=DEFAULT_GROUP&dataId=logback.xml
config: http://@nacos.url@/nacos/v1/cs/configs?tenant=@nacos.namespace@&group=DEFAULT_GROUP&dataId=logback.xml
level:
root: info