Bläddra i källkod

修改127.0.0.1配置

sorelythrob 1 vecka sedan
förälder
incheckning
89a68e35b3
28 ändrade filer med 90 tillägg och 73 borttagningar
  1. 8 5
      resources/nacos-yaml/webchat-act-service-dev.yaml
  2. 3 2
      resources/nacos-yaml/webchat-admin-service-dev.yaml
  3. 5 4
      resources/nacos-yaml/webchat-aigc-service-dev.yaml
  4. 6 3
      resources/nacos-yaml/webchat-api-service-dev.yaml
  5. 3 2
      resources/nacos-yaml/webchat-client-chat-service-dev.yaml
  6. 4 3
      resources/nacos-yaml/webchat-connect-service-dev.yaml
  7. 4 3
      resources/nacos-yaml/webchat-pay-service-dev.yaml
  8. 6 3
      resources/nacos-yaml/webchat-pgc-service-dev.yaml
  9. 4 3
      resources/nacos-yaml/webchat-sso-service-dev.yaml
  10. 4 3
      resources/nacos-yaml/webchat-ugc-service-dev.yaml
  11. 5 4
      resources/nacos-yaml/webchat-user-service-dev.yaml
  12. 2 2
      webchat-act/src/main/resources/bootstrap.yml
  13. 3 3
      webchat-admin/src/main/resources/bootstrap.yml
  14. 3 3
      webchat-aigc/src/main/resources/bootstrap.yml
  15. 3 3
      webchat-api/src/main/resources/bootstrap.yml
  16. 3 3
      webchat-client-chat/src/main/resources/bootstrap.yml
  17. 1 1
      webchat-common/src/main/java/com/webchat/common/config/configuration/RedissonConfig.java
  18. 1 1
      webchat-common/src/main/java/com/webchat/common/config/configuration/RocketMQProducerConfig.java
  19. 3 3
      webchat-connect/src/main/resources/bootstrap.yml
  20. 0 0
      webchat-gateway/src/main/resources/application.yml
  21. 2 2
      webchat-gateway/src/main/resources/bootstrap.yml
  22. 2 2
      webchat-pay/src/main/resources/bootstrap.yml
  23. 3 3
      webchat-pgc/src/main/resources/bootstrap.yml
  24. 2 2
      webchat-search/src/main/resources/bootstrap.yml
  25. 2 2
      webchat-sso/src/main/resources/bootstrap.yml
  26. 3 3
      webchat-ugc/src/main/resources/bootstrap.yml
  27. 1 1
      webchat-ugc/src/main/resources/sharding-jdbc.yml
  28. 4 4
      webchat-user/src/main/resources/bootstrap.yml

+ 8 - 5
resources/nacos-yaml/webchat-act-service-dev.yaml

@@ -1,9 +1,9 @@
 #---------------------------------数据库配置----------------------------------#
 spring:
   datasource:
-    url: jdbc:mysql://127.0.0.1:3306/webchat_act?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2b8&allowPublicKeyRetrieval=true
-    username: root
-    password: 12345678
+    url: jdbc:mysql://192.168.36.128:3306/webchat_act?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2b8&allowPublicKeyRetrieval=true
+    username: webchat_act
+    password: siKB2dJPxKhERayG
     driver-class-name: com.mysql.jdbc.Driver
     hikari:
       maximum-pool-size: 10
@@ -12,16 +12,19 @@ spring:
   #---------------------------------redis----------------------------------#
   data:
     redis:
-      port: 6379
+      host: 192.168.36.128
+      port: 26739
+      password: ZiFiE3JkwCN5S5FF
       database: 6
       jedis:
+        timeout: 5000
         pool:
           max-active: 100
           max-wait: -1
           min-idle: 10
 
 rocketmq:
-  name-server: 127.0.0.1:9876
+  name-server: 192.168.36.128:9876
   consumer:
     group: web_chat
   producer:

+ 3 - 2
resources/nacos-yaml/webchat-admin-service-dev.yaml

@@ -5,8 +5,9 @@ spring:
       max-request-size: 10MB
   data:
     redis:
-      host: 127.0.0.1
-      port: 6379
+      host: 192.168.36.128
+      port: 26739
+      password: ZiFiE3JkwCN5S5FF
       database: 6
       jedis:
         timeout: 5000

+ 5 - 4
resources/nacos-yaml/webchat-aigc-service-dev.yaml

@@ -5,8 +5,9 @@ spring:
   #---------------------------------redis----------------------------------#
   data:
     redis:
-      host: 127.0.0.1
-      port: 6379
+      host: 192.168.36.128
+      port: 26739
+      password: ZiFiE3JkwCN5S5FF
       database: 6
       jedis:
         timeout: 5000
@@ -29,11 +30,11 @@ llm:
       accessKey:
       SecretKey:
     ollama:
-      base-url: http://127.0.0.1:11434
+      base-url: http://192.168.36.128:11434
       # ollama的本地模型
       model: deepseek-r1:7b
 
 rocketmq:
-  name-server: 127.0.0.1:9876
+  name-server: 192.168.36.128:9876
   consumer:
     group: web_chat

+ 6 - 3
resources/nacos-yaml/webchat-api-service-dev.yaml

@@ -1,7 +1,7 @@
 #---------------------------------数据库配置----------------------------------#
 spring:
   datasource:
-    url: jdbc:mysql://127.0.0.1:3306/webchat_act?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2b8&allowPublicKeyRetrieval=true
+    url: jdbc:mysql://192.168.36.128:3306/webchat_act?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2b8&allowPublicKeyRetrieval=true
     username: root
     password: 12345678
     driver-class-name: com.mysql.jdbc.Driver
@@ -12,16 +12,19 @@ spring:
   #---------------------------------redis----------------------------------#
   data:
     redis:
-      port: 6379
+      host: 192.168.36.128
+      port: 26739
+      password: ZiFiE3JkwCN5S5FF
       database: 6
       jedis:
+        timeout: 5000
         pool:
           max-active: 100
           max-wait: -1
           min-idle: 10
 
 rocketmq:
-  name-server: 127.0.0.1:9876
+  name-server: 192.168.36.128:9876
   consumer:
     group: web_chat
   producer:

+ 3 - 2
resources/nacos-yaml/webchat-client-chat-service-dev.yaml

@@ -5,8 +5,9 @@ spring:
       max-request-size: 10MB
   data:
     redis:
-      host: 127.0.0.1
-      port: 6379
+      host: 192.168.36.128
+      port: 26739
+      password: ZiFiE3JkwCN5S5FF
       database: 6
       jedis:
         timeout: 5000

+ 4 - 3
resources/nacos-yaml/webchat-connect-service-dev.yaml

@@ -6,8 +6,9 @@ spring:
     allow-bean-definition-overriding: true
   data:
     redis:
-      host: 127.0.0.1
-      port: 6379
+      host: 192.168.36.128
+      port: 26739
+      password: ZiFiE3JkwCN5S5FF
       database: 6
       jedis:
         timeout: 5000
@@ -17,7 +18,7 @@ spring:
           min-idle: 10
 
 rocketmq:
-  name-server: 127.0.0.1:9876
+  name-server: 192.168.36.128:9876
   consumer:
     group: web_chat
   producer:

+ 4 - 3
resources/nacos-yaml/webchat-pay-service-dev.yaml

@@ -1,7 +1,7 @@
 #---------------------------------数据库配置----------------------------------#
 spring:
   datasource:
-    url: jdbc:mysql://127.0.0.1:3306/webchat_payment?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2b8&allowPublicKeyRetrieval=true
+    url: jdbc:mysql://192.168.36.128:3306/webchat_payment?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2b8&allowPublicKeyRetrieval=true
     username: root
     password: 12345678
     driver-class-name: com.mysql.jdbc.Driver
@@ -12,8 +12,9 @@ spring:
   # set redis config
   data:
     redis:
-      host: 127.0.0.1
-      port: 6379
+      host: 192.168.36.128
+      port: 26739
+      password: ZiFiE3JkwCN5S5FF
       database: 6
       jedis:
         timeout: 5000

+ 6 - 3
resources/nacos-yaml/webchat-pgc-service-dev.yaml

@@ -1,7 +1,7 @@
 #---------------------------------数据库配置----------------------------------#
 spring:
   datasource:
-    url: jdbc:mysql://127.0.0.1:3306/webchat_pgc?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2b8&allowPublicKeyRetrieval=true
+    url: jdbc:mysql://192.168.36.128:3306/webchat_pgc?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2b8&allowPublicKeyRetrieval=true
     username: root
     password: 12345678
     driver-class-name: com.mysql.jdbc.Driver
@@ -12,16 +12,19 @@ spring:
   #---------------------------------redis----------------------------------#
   data:
     redis:
-      port: 6379
+      host: 192.168.36.128
+      port: 26739
+      password: ZiFiE3JkwCN5S5FF
       database: 6
       jedis:
+        timeout: 5000
         pool:
           max-active: 100
           max-wait: -1
           min-idle: 10
 
 rocketmq:
-  name-server: 127.0.0.1:9876
+  name-server: 192.168.36.128:9876
   consumer:
     group: web_chat
   producer:

+ 4 - 3
resources/nacos-yaml/webchat-sso-service-dev.yaml

@@ -1,9 +1,10 @@
 spring:
   data:
     redis:
-      host: 127.0.0.1
-      port: 6379
-      database: 2
+      host: 192.168.36.128
+      port: 26739
+      password: ZiFiE3JkwCN5S5FF
+      database: 6
       jedis:
         timeout: 5000
         pool:

+ 4 - 3
resources/nacos-yaml/webchat-ugc-service-dev.yaml

@@ -8,8 +8,9 @@ spring:
     show-sql: true
   data:
     redis:
-      host: 127.0.0.1
-      port: 6379
+      host: 192.168.36.128
+      port: 26739
+      password: ZiFiE3JkwCN5S5FF
       database: 6
       jedis:
         timeout: 5000
@@ -19,7 +20,7 @@ spring:
           min-idle: 10
 
 rocketmq:
-  name-server: 127.0.0.1:9876
+  name-server: 192.168.36.128:9876
   consumer:
     group: web_chat
   producer:

+ 5 - 4
resources/nacos-yaml/webchat-user-service-dev.yaml

@@ -2,7 +2,7 @@ spring:
   main:
     allow-bean-definition-overriding: true
   datasource:
-    url: jdbc:mysql://127.0.0.1:3306/webchat_user?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2b8&allowPublicKeyRetrieval=true
+    url: jdbc:mysql://192.168.36.128:3306/webchat_user?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2b8&allowPublicKeyRetrieval=true
     username: root
     password: 12345678
     driver-class-name: com.mysql.jdbc.Driver
@@ -12,8 +12,9 @@ spring:
     show-sql: true
   data:
     redis:
-      host: 127.0.0.1
-      port: 6379
+      host: 192.168.36.128
+      port: 26739
+      password: ZiFiE3JkwCN5S5FF
       database: 6
       jedis:
         timeout: 5000
@@ -25,4 +26,4 @@ spring:
 rocketmq:
   producer:
     group: web_chat
-  name-server: 127.0.0.1:9876
+  name-server: 192.168.36.128:9876

+ 2 - 2
webchat-act/src/main/resources/bootstrap.yml

@@ -6,11 +6,11 @@ spring:
   cloud:
     nacos:
       config:
-        server-addr: 127.0.0.1:8848
+        server-addr: 192.168.36.128:8848
         namespace: 2cdfb8e3-f127-4020-93df-2d4c3dc805b5
         file-extension: yaml
         group: DEFAULT_GROUP
         refresh-enabled: true
       discovery:
-        server-addr: 127.0.0.1:8848
+        server-addr: 192.168.36.128:8848
         namespace: 2cdfb8e3-f127-4020-93df-2d4c3dc805b5

+ 3 - 3
webchat-admin/src/main/resources/bootstrap.yml

@@ -6,16 +6,16 @@ spring:
   cloud:
     nacos:
       config:
-        server-addr: 127.0.0.1:8848
+        server-addr: 192.168.36.128:8848
         namespace: 2cdfb8e3-f127-4020-93df-2d4c3dc805b5
         file-extension: yaml
         group: DEFAULT_GROUP
         refresh-enabled: true
       discovery:
-        server-addr: 127.0.0.1:8848
+        server-addr: 192.168.36.128:8848
         namespace: 2cdfb8e3-f127-4020-93df-2d4c3dc805b5
     sentinel:
       transport:
         port: 8719
-        dashboard: 127.0.0.1:8080
+        dashboard: 192.168.36.128:8080
       eager: true

+ 3 - 3
webchat-aigc/src/main/resources/bootstrap.yml

@@ -6,16 +6,16 @@ spring:
   cloud:
     nacos:
       config:
-        server-addr: 127.0.0.1:8848
+        server-addr: 192.168.36.128:8848
         namespace: 2cdfb8e3-f127-4020-93df-2d4c3dc805b5
         file-extension: yaml
         group: DEFAULT_GROUP
         refresh-enabled: true
       discovery:
-        server-addr: 127.0.0.1:8848
+        server-addr: 192.168.36.128:8848
         namespace: 2cdfb8e3-f127-4020-93df-2d4c3dc805b5
     sentinel:
       transport:
         port: 8719
-        dashboard: 127.0.0.1:8080
+        dashboard: 192.168.36.128:8080
       eager: true

+ 3 - 3
webchat-api/src/main/resources/bootstrap.yml

@@ -6,16 +6,16 @@ spring:
   cloud:
     nacos:
       config:
-        server-addr: 127.0.0.1:8848
+        server-addr: 192.168.36.128:8848
         namespace: 2cdfb8e3-f127-4020-93df-2d4c3dc805b5
         file-extension: yaml
         group: DEFAULT_GROUP
         refresh-enabled: true
       discovery:
-        server-addr: 127.0.0.1:8848
+        server-addr: 192.168.36.128:8848
         namespace: 2cdfb8e3-f127-4020-93df-2d4c3dc805b5
     sentinel:
       transport:
         port: 8719
-        dashboard: 127.0.0.1:8080
+        dashboard: 192.168.36.128:8080
       eager: true

+ 3 - 3
webchat-client-chat/src/main/resources/bootstrap.yml

@@ -6,16 +6,16 @@ spring:
   cloud:
     nacos:
       config:
-        server-addr: 127.0.0.1:8848
+        server-addr: 192.168.36.128:8848
         namespace: 2cdfb8e3-f127-4020-93df-2d4c3dc805b5
         file-extension: yaml
         group: DEFAULT_GROUP
         refresh-enabled: true
       discovery:
-        server-addr: 127.0.0.1:8848
+        server-addr: 192.168.36.128:8848
         namespace: 2cdfb8e3-f127-4020-93df-2d4c3dc805b5
     sentinel:
       transport:
         port: 8719
-        dashboard: 127.0.0.1:8080
+        dashboard: 192.168.36.128:8080
       eager: true

+ 1 - 1
webchat-common/src/main/java/com/webchat/common/config/configuration/RedissonConfig.java

@@ -26,7 +26,7 @@ public class RedissonConfig {
         Config config = new Config();
 
         // 2、集群模式
-        // config.useClusterServers().addNodeAddress("127.0.0.1:7004", "127.0.0.1:7001");
+        // config.useClusterServers().addNodeAddress("192.168.36.128:7004", "192.168.36.128:7001");
         // 根据 Config 创建出 RedissonClient 示例
         config.useSingleServer()
                 .setAddress(String.format("redis://%s:%s", host, port))

+ 1 - 1
webchat-common/src/main/java/com/webchat/common/config/configuration/RocketMQProducerConfig.java

@@ -12,7 +12,7 @@ public class RocketMQProducerConfig {
     @Value("${rocketmq.producer.group:webchat}")
     private String producerGroup;
 
-    @Value("${rocketmq.name-server:127.0.0.1:9876}")
+    @Value("${rocketmq.name-server:192.168.36.128:9876}")
     private String nameServer;
 
     @Bean

+ 3 - 3
webchat-connect/src/main/resources/bootstrap.yml

@@ -6,16 +6,16 @@ spring:
   cloud:
     nacos:
       config:
-        server-addr: 127.0.0.1:8848
+        server-addr: 192.168.36.128:8848
         namespace: 2cdfb8e3-f127-4020-93df-2d4c3dc805b5
         file-extension: yaml
         group: DEFAULT_GROUP
         refresh-enabled: true
       discovery:
-        server-addr: 127.0.0.1:8848
+        server-addr: 192.168.36.128:8848
         namespace: 2cdfb8e3-f127-4020-93df-2d4c3dc805b5
     sentinel:
       transport:
         port: 8719
-        dashboard: 127.0.0.1:8080
+        dashboard: 192.168.36.128:8080
       eager: true

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
webchat-gateway/src/main/resources/application.yml


+ 2 - 2
webchat-gateway/src/main/resources/bootstrap.yml

@@ -6,10 +6,10 @@ spring:
   cloud:
     nacos:
       discovery:
-        server-addr: 127.0.0.1:8848
+        server-addr: 192.168.36.128:8848
         namespace: 2cdfb8e3-f127-4020-93df-2d4c3dc805b5
       config:
-        server-addr: 127.0.0.1:8848
+        server-addr: 192.168.36.128:8848
         namespace: 2cdfb8e3-f127-4020-93df-2d4c3dc805b5
         file-extension: yaml
         group: DEFAULT_GROUP

+ 2 - 2
webchat-pay/src/main/resources/bootstrap.yml

@@ -6,11 +6,11 @@ spring:
   cloud:
     nacos:
       config:
-        server-addr: 127.0.0.1:8848
+        server-addr: 192.168.36.128:8848
         namespace: 2cdfb8e3-f127-4020-93df-2d4c3dc805b5
         file-extension: yaml
         group: DEFAULT_GROUP
         refresh-enabled: true
       discovery:
-        server-addr: 127.0.0.1:8848
+        server-addr: 192.168.36.128:8848
         namespace: 2cdfb8e3-f127-4020-93df-2d4c3dc805b5

+ 3 - 3
webchat-pgc/src/main/resources/bootstrap.yml

@@ -6,16 +6,16 @@ spring:
   cloud:
     nacos:
       config:
-        server-addr: 127.0.0.1:8848
+        server-addr: 192.168.36.128:8848
         namespace: 2cdfb8e3-f127-4020-93df-2d4c3dc805b5
         file-extension: yaml
         group: DEFAULT_GROUP
         refresh-enabled: true
       discovery:
-        server-addr: 127.0.0.1:8848
+        server-addr: 192.168.36.128:8848
         namespace: 2cdfb8e3-f127-4020-93df-2d4c3dc805b5
     sentinel:
       transport:
         port: 8719
-        dashboard: 127.0.0.1:8080
+        dashboard: 192.168.36.128:8080
       eager: true

+ 2 - 2
webchat-search/src/main/resources/bootstrap.yml

@@ -6,11 +6,11 @@ spring:
   cloud:
     nacos:
       config:
-        server-addr: 127.0.0.1:8848
+        server-addr: 192.168.36.128:8848
         namespace: 2cdfb8e3-f127-4020-93df-2d4c3dc805b5
         file-extension: yaml
         group: DEFAULT_GROUP
         refresh-enabled: true
       discovery:
-        server-addr: 127.0.0.1:8848
+        server-addr: 192.168.36.128:8848
         namespace: 2cdfb8e3-f127-4020-93df-2d4c3dc805b5

+ 2 - 2
webchat-sso/src/main/resources/bootstrap.yml

@@ -12,11 +12,11 @@ spring:
   cloud:
     nacos:
       config:
-        server-addr: 127.0.0.1:8848
+        server-addr: 192.168.36.128:8848
         namespace: 2cdfb8e3-f127-4020-93df-2d4c3dc805b5
         file-extension: yaml
         group: DEFAULT_GROUP
         refresh-enabled: true
       discovery:
-        server-addr: 127.0.0.1:8848
+        server-addr: 192.168.36.128:8848
         namespace: 2cdfb8e3-f127-4020-93df-2d4c3dc805b5

+ 3 - 3
webchat-ugc/src/main/resources/bootstrap.yml

@@ -6,16 +6,16 @@ spring:
   cloud:
     nacos:
       config:
-        server-addr: 127.0.0.1:8848
+        server-addr: 192.168.36.128:8848
         namespace: 2cdfb8e3-f127-4020-93df-2d4c3dc805b5
         file-extension: yaml
         group: DEFAULT_GROUP
         refresh-enabled: true
       discovery:
-        server-addr: 127.0.0.1:8848
+        server-addr: 192.168.36.128:8848
         namespace: 2cdfb8e3-f127-4020-93df-2d4c3dc805b5
     sentinel:
       transport:
         port: 8719
-        dashboard: 127.0.0.1:8080
+        dashboard: 192.168.36.128:8080
       eager: true

+ 1 - 1
webchat-ugc/src/main/resources/sharding-jdbc.yml

@@ -3,7 +3,7 @@ dataSources:
   ds_0:
     driverClassName: com.mysql.cj.jdbc.Driver
     dataSourceClassName: com.zaxxer.hikari.HikariDataSource
-    jdbcUrl: jdbc:mysql://127.0.0.1:3306/webchat_ugc?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2b8&allowPublicKeyRetrieval=true
+    jdbcUrl: jdbc:mysql://192.168.36.128:3306/webchat_ugc?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2b8&allowPublicKeyRetrieval=true
     username: root
     password: 12345678
 # 分库分表规则配置

+ 4 - 4
webchat-user/src/main/resources/bootstrap.yml

@@ -6,21 +6,21 @@ spring:
   cloud:
     nacos:
       config:
-        server-addr: 127.0.0.1:8848
+        server-addr: 192.168.36.128:8848
         namespace: 2cdfb8e3-f127-4020-93df-2d4c3dc805b5
         file-extension: yaml
         group: DEFAULT_GROUP
         refresh-enabled: true
       discovery:
-        server-addr: 127.0.0.1:8848
+        server-addr: 192.168.36.128:8848
         namespace: 2cdfb8e3-f127-4020-93df-2d4c3dc805b5
     sentinel:
       transport:
         port: 8719
-        dashboard: 127.0.0.1:8080
+        dashboard: 192.168.36.128:8080
       eager: true
 
 rocketmq:
   producer:
     group: webchat
-  name-server: 127.0.0.1:9876
+  name-server: 192.168.36.128:9876

Vissa filer visades inte eftersom för många filer har ändrats