Browse Source

nacos 用户验证

skcj 1 year ago
parent
commit
0678a93104

+ 21 - 0
pom.xml

@@ -52,6 +52,8 @@
                 <!--                <nacos.server>121.36.73.159:8848</nacos.server>-->
                 <nacos.server>121.36.73.159:8848</nacos.server>
                 <!--                <nacos.server>mz.tshe.cn:848</nacos.server>-->
+                <nacos.config.user>nacos</nacos.config.user>
+                <nacos.config.password>sckjadmin</nacos.config.password>
                 <nacos.discovery.group>MZ</nacos.discovery.group>
                 <nacos.discovery.namespace>wls</nacos.discovery.namespace>
                 <nacos.config.group>MZ</nacos.config.group>
@@ -67,6 +69,8 @@
             <properties>
                 <profiles.active>strong3</profiles.active>
                 <nacos.server>10.16.4.12:8848</nacos.server>
+                <nacos.config.user>nacos</nacos.config.user>
+                <nacos.config.password>sckjadmin</nacos.config.password>
                 <nacos.discovery.group>MZ</nacos.discovery.group>
                 <nacos.config.group>MZ</nacos.config.group>
                 <nacos.discovery.namespace>strong3</nacos.discovery.namespace>
@@ -78,6 +82,8 @@
             <properties>
                 <profiles.active>hw</profiles.active>
                 <nacos.server>192.168.0.252:8848</nacos.server>
+                <nacos.config.user>nacos</nacos.config.user>
+                <nacos.config.password>nacos</nacos.config.password>
                 <nacos.discovery.group>MZ</nacos.discovery.group>
                 <nacos.config.group>MZ</nacos.config.group>
                 <nacos.discovery.namespace>hw</nacos.discovery.namespace>
@@ -89,12 +95,27 @@
             <properties>
                 <profiles.active>prod</profiles.active>
                 <nacos.server>10.201.146.3:8848</nacos.server>
+                <nacos.config.user>nacos</nacos.config.user>
+                <nacos.config.password>nacos</nacos.config.password>
                 <nacos.discovery.group>MZ</nacos.discovery.group>
                 <nacos.config.group>MZ</nacos.config.group>
                 <nacos.discovery.namespace>prod</nacos.discovery.namespace>
                 <nacos.config.namespace>prod</nacos.config.namespace>
             </properties>
         </profile>
+        <profile>
+            <id>myvm</id>
+            <properties>
+                <profiles.active>myvm</profiles.active>
+                <nacos.server>172.17.0.1:8848</nacos.server>
+                <nacos.config.user>nacos</nacos.config.user>
+                <nacos.config.password>nacos</nacos.config.password>
+                <nacos.discovery.group>MZ</nacos.discovery.group>
+                <nacos.config.group>MZ</nacos.config.group>
+                <nacos.discovery.namespace>myvm</nacos.discovery.namespace>
+                <nacos.config.namespace>myvm</nacos.config.namespace>
+            </properties>
+        </profile>
     </profiles>
 
     <!-- 依赖声明 -->

+ 2 - 0
ruoyi-auth/src/main/resources/bootstrap.yml

@@ -14,6 +14,8 @@ spring:
     nacos:
       # nacos 服务地址
       server-addr: @nacos.server@
+      username: @nacos.config.user@
+      password: @nacos.config.password@
       discovery:
         # 注册组
         group: @nacos.discovery.group@

+ 2 - 0
ruoyi-gateway/src/main/resources/bootstrap.yml

@@ -14,6 +14,8 @@ spring:
     nacos:
       # nacos 服务地址
       server-addr: @nacos.server@
+      username: @nacos.config.user@
+      password: @nacos.config.password@
       discovery:
         # 注册组
         group: @nacos.discovery.group@

+ 2 - 0
ruoyi-modules/mz-business/src/main/resources/bootstrap.yml

@@ -14,6 +14,8 @@ spring:
     nacos:
       # nacos 服务地址
       server-addr: @nacos.server@
+      username: @nacos.config.user@
+      password: @nacos.config.password@
       discovery:
         # 注册组
         group: @nacos.discovery.group@

+ 2 - 0
ruoyi-modules/mz-datasync/src/main/resources/bootstrap.yml

@@ -14,6 +14,8 @@ spring:
     nacos:
       # nacos 服务地址
       server-addr: @nacos.server@
+      username: @nacos.config.user@
+      password: @nacos.config.password@
       discovery:
         # 注册组
         group: @nacos.discovery.group@

+ 2 - 0
ruoyi-modules/mz-organization/src/main/resources/bootstrap.yml

@@ -14,6 +14,8 @@ spring:
     nacos:
       # nacos 服务地址
       server-addr: @nacos.server@
+      username: @nacos.config.user@
+      password: @nacos.config.password@
       discovery:
         # 注册组
         group: @nacos.discovery.group@

+ 2 - 0
ruoyi-modules/mz-portal/src/main/resources/bootstrap.yml

@@ -14,6 +14,8 @@ spring:
     nacos:
       # nacos 服务地址
       server-addr: @nacos.server@
+      username: @nacos.config.user@
+      password: @nacos.config.password@
       discovery:
         # 注册组
         group: @nacos.discovery.group@

+ 2 - 0
ruoyi-modules/ruoyi-file/src/main/resources/bootstrap.yml

@@ -14,6 +14,8 @@ spring:
     nacos:
       # nacos 服务地址
       server-addr: @nacos.server@
+      username: @nacos.config.user@
+      password: @nacos.config.password@
       discovery:
         # 注册组
         group: @nacos.discovery.group@

+ 2 - 0
ruoyi-modules/ruoyi-gen/src/main/resources/bootstrap.yml

@@ -14,6 +14,8 @@ spring:
     nacos:
       # nacos 服务地址
       server-addr: @nacos.server@
+      username: @nacos.config.user@
+      password: @nacos.config.password@
       discovery:
         # 注册组
         group: @nacos.discovery.group@

+ 2 - 0
ruoyi-modules/ruoyi-job/src/main/resources/bootstrap.yml

@@ -14,6 +14,8 @@ spring:
     nacos:
       # nacos 服务地址
       server-addr: @nacos.server@
+      username: @nacos.config.user@
+      password: @nacos.config.password@
       discovery:
         # 注册组
         group: @nacos.discovery.group@

+ 2 - 0
ruoyi-modules/ruoyi-system/src/main/resources/bootstrap.yml

@@ -14,6 +14,8 @@ spring:
     nacos:
       # nacos 服务地址
       server-addr: @nacos.server@
+      username: @nacos.config.user@
+      password: @nacos.config.password@
       discovery:
         # 注册组
         group: @nacos.discovery.group@

+ 2 - 0
ruoyi-visual/ruoyi-monitor/src/main/resources/bootstrap.yml

@@ -14,6 +14,8 @@ spring:
     nacos:
       # nacos 服务地址
       server-addr: @nacos.server@
+      username: @nacos.config.user@
+      password: @nacos.config.password@
       discovery:
         # 注册组
         group: @nacos.discovery.group@