Browse Source

本地初始化代码

zrd 4 months ago
parent
commit
f92d21656c

+ 2 - 2
build-cloud/vue/default.conf

@@ -30,7 +30,7 @@ try_files $uri $uri/ /index.html;
  
  
 
 
     location /admin-api/ { ## 后端项目 - 管理后台
     location /admin-api/ { ## 后端项目 - 管理后台
-        proxy_pass http://119.29.146.254:48080/admin-api/; ## 重要!!!proxy_pass 需要设置为后端项目所在服务器的 IP
+        proxy_pass http://42.194.163.46:48080/admin-api/; ## 重要!!!proxy_pass 需要设置为后端项目所在服务器的 IP
         proxy_set_header Host $http_host;
         proxy_set_header Host $http_host;
         proxy_set_header X-Real-IP $remote_addr;
         proxy_set_header X-Real-IP $remote_addr;
         proxy_set_header REMOTE-HOST $remote_addr;
         proxy_set_header REMOTE-HOST $remote_addr;
@@ -38,7 +38,7 @@ try_files $uri $uri/ /index.html;
     }
     }
 
 
     location /app-api/ { ## 后端项目 - 用户 App
     location /app-api/ { ## 后端项目 - 用户 App
-        proxy_pass http://119.29.146.254:48080/app-api/; ## 重要!!!proxy_pass 需要设置为后端项目所在服务器的 IP
+        proxy_pass http://42.194.163.46:48080/app-api/; ## 重要!!!proxy_pass 需要设置为后端项目所在服务器的 IP
         proxy_set_header Host $http_host;
         proxy_set_header Host $http_host;
         proxy_set_header X-Real-IP $remote_addr;
         proxy_set_header X-Real-IP $remote_addr;
         proxy_set_header REMOTE-HOST $remote_addr;
         proxy_set_header REMOTE-HOST $remote_addr;

+ 2 - 2
pom.xml

@@ -145,11 +145,11 @@
     <distributionManagement>
     <distributionManagement>
         <repository>
         <repository>
             <id>maven-snapshots</id>
             <id>maven-snapshots</id>
-            <url>http://119.29.146.254:8081/repository/maven-snapshots/</url>
+            <url>http://42.194.163.46:8081/repository/maven-snapshots/</url>
         </repository>
         </repository>
         <snapshotRepository>
         <snapshotRepository>
             <id>maven-releases</id>
             <id>maven-releases</id>
-            <url>http://119.29.146.254:8081/repository/maven-releases/</url>
+            <url>http://42.194.163.46:8081/repository/maven-releases/</url>
         </snapshotRepository>
         </snapshotRepository>
     </distributionManagement>
     </distributionManagement>
     <!-- 使用 huawei / aliyun 的 Maven 源,提升下载速度 -->
     <!-- 使用 huawei / aliyun 的 Maven 源,提升下载速度 -->

+ 2 - 2
script/docker/docker-compose.yml

@@ -44,10 +44,10 @@ services:
           -Djava.security.egd=file:/dev/./urandom
           -Djava.security.egd=file:/dev/./urandom
         }
         }
       ARGS:
       ARGS:
-        --spring.datasource.dynamic.datasource.master.url=${MASTER_DATASOURCE_URL:-jdbc:mysql://yudao-mysql:3306/ruoyi-vue-pro?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true}
+        --spring.datasource.dynamic.datasource.master.url=${MASTER_DATASOURCE_URL:-jdbc:mysql://yudao-mysql:3306/ywd?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true}
         --spring.datasource.dynamic.datasource.master.username=${MASTER_DATASOURCE_USERNAME:-root}
         --spring.datasource.dynamic.datasource.master.username=${MASTER_DATASOURCE_USERNAME:-root}
         --spring.datasource.dynamic.datasource.master.password=${MASTER_DATASOURCE_PASSWORD:-123456}
         --spring.datasource.dynamic.datasource.master.password=${MASTER_DATASOURCE_PASSWORD:-123456}
-        --spring.datasource.dynamic.datasource.slave.url=${SLAVE_DATASOURCE_URL:-jdbc:mysql://yudao-mysql:3306/ruoyi-vue-pro?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true}
+        --spring.datasource.dynamic.datasource.slave.url=${SLAVE_DATASOURCE_URL:-jdbc:mysql://yudao-mysql:3306/ywd?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true}
         --spring.datasource.dynamic.datasource.slave.username=${SLAVE_DATASOURCE_USERNAME:-root}
         --spring.datasource.dynamic.datasource.slave.username=${SLAVE_DATASOURCE_USERNAME:-root}
         --spring.datasource.dynamic.datasource.slave.password=${SLAVE_DATASOURCE_PASSWORD:-123456}
         --spring.datasource.dynamic.datasource.slave.password=${SLAVE_DATASOURCE_PASSWORD:-123456}
         --spring.data.redis.host=${REDIS_HOST:-yudao-redis}
         --spring.data.redis.host=${REDIS_HOST:-yudao-redis}

+ 6 - 0
yudao-framework/yudao-spring-boot-starter-biz-tenant/pom.xml

@@ -78,6 +78,12 @@
             <groupId>com.google.guava</groupId>
             <groupId>com.google.guava</groupId>
             <artifactId>guava</artifactId>
             <artifactId>guava</artifactId>
         </dependency>
         </dependency>
+        <dependency>
+            <groupId>org.apache.rocketmq</groupId>
+            <artifactId>rocketmq-common</artifactId>
+            <version>5.3.1</version>
+            <scope>compile</scope>
+        </dependency>
     </dependencies>
     </dependencies>
 
 
 </project>
 </project>

+ 1 - 1
yudao-module-game/yudao-module-game-biz/src/main/java/cn/iocoder/yudao/module/game/adpter/DiftUtils.java

@@ -20,7 +20,7 @@ public class DiftUtils {
     public static DifyResponse getDifyResponse(FileResp file, String user) {
     public static DifyResponse getDifyResponse(FileResp file, String user) {
         DifyResponse difyResponse = new DifyResponse();
         DifyResponse difyResponse = new DifyResponse();
         // 接口地址
         // 接口地址
-        String url = "http://119.29.146.254:8080/v1/workflows/run";
+        String url = "http://42.194.163.46:8080/v1/workflows/run";
         // 替换为你的实际 API Key
         // 替换为你的实际 API Key
         String apiKey = "app-1LPvO0vSSSnrGAh5cyKHZkAW";
         String apiKey = "app-1LPvO0vSSSnrGAh5cyKHZkAW";
         
         

+ 1 - 1
yudao-module-game/yudao-module-game-biz/src/main/java/cn/iocoder/yudao/module/game/adpter/DifyFilesUtils.java

@@ -26,7 +26,7 @@ public class DifyFilesUtils {
     public static FileResp uploadFile(File file, String user) {
     public static FileResp uploadFile(File file, String user) {
         FileResp fileResp = new FileResp();
         FileResp fileResp = new FileResp();
         // 接口地址
         // 接口地址
-        String url = "http://119.29.146.254:8080/v1/files/upload";
+        String url = "http://42.194.163.46:8080/v1/files/upload";
         // 替换为你的实际 API Key
         // 替换为你的实际 API Key
         String apiKey = "app-1LPvO0vSSSnrGAh5cyKHZkAW";
         String apiKey = "app-1LPvO0vSSSnrGAh5cyKHZkAW";
         
         

+ 3 - 2
yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/db/vo/DataSourceConfigRespVO.java

@@ -14,8 +14,9 @@ public class DataSourceConfigRespVO {
 
 
     @Schema(description = "数据源名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "test")
     @Schema(description = "数据源名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "test")
     private String name;
     private String name;
-
-    @Schema(description = "数据源连接", requiredMode = Schema.RequiredMode.REQUIRED, example = "jdbc:mysql://127.0.0.1:3306/ruoyi-vue-pro")
+    
+    @Schema(description = "数据源连接", requiredMode = Schema.RequiredMode.REQUIRED, example = "jdbc:mysql://127.0.0" +
+            ".1:3306/ywd")
     private String url;
     private String url;
 
 
     @Schema(description = "用户名", requiredMode = Schema.RequiredMode.REQUIRED, example = "root")
     @Schema(description = "用户名", requiredMode = Schema.RequiredMode.REQUIRED, example = "root")

+ 5 - 4
yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/db/vo/DataSourceConfigSaveReqVO.java

@@ -1,8 +1,8 @@
 package cn.iocoder.yudao.module.infra.controller.admin.db.vo;
 package cn.iocoder.yudao.module.infra.controller.admin.db.vo;
 
 
 import io.swagger.v3.oas.annotations.media.Schema;
 import io.swagger.v3.oas.annotations.media.Schema;
-import lombok.*;
-import jakarta.validation.constraints.*;
+import jakarta.validation.constraints.NotNull;
+import lombok.Data;
 
 
 @Schema(description = "管理后台 - 数据源配置创建/修改 Request VO")
 @Schema(description = "管理后台 - 数据源配置创建/修改 Request VO")
 @Data
 @Data
@@ -14,8 +14,9 @@ public class DataSourceConfigSaveReqVO {
     @Schema(description = "数据源名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "test")
     @Schema(description = "数据源名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "test")
     @NotNull(message = "数据源名称不能为空")
     @NotNull(message = "数据源名称不能为空")
     private String name;
     private String name;
-
-    @Schema(description = "数据源连接", requiredMode = Schema.RequiredMode.REQUIRED, example = "jdbc:mysql://127.0.0.1:3306/ruoyi-vue-pro")
+    
+    @Schema(description = "数据源连接", requiredMode = Schema.RequiredMode.REQUIRED, example = "jdbc:mysql://127.0.0" +
+            ".1:3306/ywd")
     @NotNull(message = "数据源连接不能为空")
     @NotNull(message = "数据源连接不能为空")
     private String url;
     private String url;
 
 

+ 2 - 2
yudao-server/pom.xml

@@ -159,11 +159,11 @@
     <distributionManagement>
     <distributionManagement>
         <repository>
         <repository>
             <id>maven-snapshots</id>
             <id>maven-snapshots</id>
-            <url>http://119.29.146.254:8081/repository/maven-releases/</url>
+            <url>http://42.194.163.46:8081/repository/maven-releases/</url>
         </repository>
         </repository>
         <snapshotRepository>
         <snapshotRepository>
             <id>maven-releases</id>
             <id>maven-releases</id>
-            <url>http://119.29.146.254:8081/repository/maven-snapshots/</url>
+            <url>http://42.194.163.46:8081/repository/maven-snapshots/</url>
         </snapshotRepository>
         </snapshotRepository>
     </distributionManagement>
     </distributionManagement>
 </project>
 </project>

+ 4 - 4
yudao-server/src/main/resources/application-dev.yaml

@@ -44,22 +44,22 @@ spring:
       primary: master
       primary: master
       datasource:
       datasource:
         master:
         master:
-          url: jdbc:mysql://119.29.146.254:3306/ruoyi-vue-pro?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&rewriteBatchedStatements=true # MySQL Connector/J 8.X 连接的示例
+          url: jdbc:mysql://42.194.163.46:3306/ywd?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&rewriteBatchedStatements=true # MySQL Connector/J 8.X 连接的示例
           username: root
           username: root
           password: zrd1236987
           password: zrd1236987
         slave: # 模拟从库,可根据自己需要修改 # 模拟从库,可根据自己需要修改
         slave: # 模拟从库,可根据自己需要修改 # 模拟从库,可根据自己需要修改
           lazy: true # 开启懒加载,保证启动速度
           lazy: true # 开启懒加载,保证启动速度
-          url: jdbc:mysql://119.29.146.254:3306/ruoyi-vue-pro?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&rewriteBatchedStatements=true # MySQL Connector/J 8.X 连接的示例
+          url: jdbc:mysql://42.194.163.46:3306/ywd?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&rewriteBatchedStatements=true # MySQL Connector/J 8.X 连接的示例
           username: root
           username: root
           password: zrd1236987
           password: zrd1236987
 
 
   # Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优
   # Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优
   data:
   data:
     redis:
     redis:
-      host: 119.29.146.254 # 地址
+      host: 42.194.163.46 # 地址
       port: 6379 # 端口
       port: 6379 # 端口
       database: 1 # 数据库索引
       database: 1 # 数据库索引
-#    password: 123456 # 密码,建议生产环境开启
+      password: zrd1236987 # 密码,建议生产环境开启
 
 
 --- #################### 定时任务相关配置 ####################
 --- #################### 定时任务相关配置 ####################
 
 

+ 6 - 6
yudao-server/src/main/resources/application-local.yaml

@@ -1,5 +1,5 @@
 server:
 server:
-  port: 38080
+  port: 9095
 
 
 --- #################### 数据库相关配置 ####################
 --- #################### 数据库相关配置 ####################
 spring:
 spring:
@@ -47,8 +47,8 @@ spring:
       primary: master
       primary: master
       datasource:
       datasource:
         master:
         master:
-          url: jdbc:mysql://119.29.146.254:3306/ruoyi-vue-pro?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&rewriteBatchedStatements=true # MySQL Connector/J 8.X 连接的示例
-          #          url: jdbc:mysql://127.0.0.1:3306/ruoyi-vue-pro?useSSL=true&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&rewriteBatchedStatements=true # MySQL Connector/J 5.X 连接的示例
+          url: jdbc:mysql://42.194.163.46:3306/ywd?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&rewriteBatchedStatements=true # MySQL Connector/J 8.X 连接的示例
+          #          url: jdbc:mysql://127.0.0.1:3306/ywd?useSSL=true&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&rewriteBatchedStatements=true # MySQL Connector/J 5.X 连接的示例
           #          url: jdbc:postgresql://127.0.0.1:5432/ruoyi-vue-pro # PostgreSQL 连接的示例
           #          url: jdbc:postgresql://127.0.0.1:5432/ruoyi-vue-pro # PostgreSQL 连接的示例
           #          url: jdbc:oracle:thin:@127.0.0.1:1521:xe # Oracle 连接的示例
           #          url: jdbc:oracle:thin:@127.0.0.1:1521:xe # Oracle 连接的示例
           #          url: jdbc:sqlserver://127.0.0.1:1433;DatabaseName=ruoyi-vue-pro;SelectMethod=cursor;encrypt=false;rewriteBatchedStatements=true;useUnicode=true;characterEncoding=utf-8 # SQLServer 连接的示例
           #          url: jdbc:sqlserver://127.0.0.1:1433;DatabaseName=ruoyi-vue-pro;SelectMethod=cursor;encrypt=false;rewriteBatchedStatements=true;useUnicode=true;characterEncoding=utf-8 # SQLServer 连接的示例
@@ -65,7 +65,7 @@ spring:
           #          password: Yudao@2024 # OpenGauss 连接的示例
           #          password: Yudao@2024 # OpenGauss 连接的示例
         slave: # 模拟从库,可根据自己需要修改
         slave: # 模拟从库,可根据自己需要修改
           lazy: true # 开启懒加载,保证启动速度
           lazy: true # 开启懒加载,保证启动速度
-          url: jdbc:mysql://119.29.146.254:3306/ruoyi-vue-pro?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&rewriteBatchedStatements=true&nullCatalogMeansCurrent=true
+          url: jdbc:mysql://42.194.163.46:3306/ywd?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&rewriteBatchedStatements=true&nullCatalogMeansCurrent=true
           username: root
           username: root
           password: zrd1236987
           password: zrd1236987
 #        tdengine: # IoT 数据库(需要 IoT 物联网再开启噢!)
 #        tdengine: # IoT 数据库(需要 IoT 物联网再开启噢!)
@@ -79,10 +79,10 @@ spring:
   # Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优
   # Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优
   data:
   data:
     redis:
     redis:
-      host: 119.29.146.254 # 地址
+      host: 42.194.163.46 # 地址
       port: 6379 # 端口
       port: 6379 # 端口
       database: 0 # 数据库索引
       database: 0 # 数据库索引
-  #    password: dev # 密码,建议生产环境开启
+      password: zrd1236987 # 密码,建议生产环境开启
 
 
 --- #################### 定时任务相关配置 ####################
 --- #################### 定时任务相关配置 ####################