chore(config): Add Nacos authentication to all services

This commit is contained in:
2026-03-12 22:16:09 +08:00
parent dd0690e031
commit 7ddfde28ce
14 changed files with 77 additions and 14 deletions
@@ -8,7 +8,7 @@ spring:
active: dev
config:
import:
- optional:nacos:${spring.application.name}.yaml
- optional:nacos:${spring.application.name}.yaml?username=${NACOS_USERNAME:nacos}&password=${NACOS_PASSWORD:nacos}
cloud:
nacos:
discovery:
+10 -1
View File
@@ -7,8 +7,17 @@ spring:
server-addr: ${NACOS_HOST:nacos}:${NACOS_PORT:8848}
namespace: public
group: DEFAULT_GROUP
username: ${NACOS_USERNAME:nacos}
password: ${NACOS_PASSWORD:nacos}
ephemeral: true
ip: ${USER_IP:}
port: ${server.port:9002}
fail-fast: true
register-enabled: true
register-enabled: true
config:
server-addr: ${NACOS_HOST:nacos}:${NACOS_PORT:8848}
namespace: public
group: DEFAULT_GROUP
username: ${NACOS_USERNAME:nacos}
password: ${NACOS_PASSWORD:nacos}
file-extension: yaml