From 9ee30239a1d15a0ecd36f974dcca376ec3016a02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=BF=A0=E6=9E=97?= <170083662@qq.com> Date: Mon, 28 Jul 2025 10:20:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B4=E7=90=86=E7=9B=AE=E5=BD=95=E5=8F=8A?= =?UTF-8?q?=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/application-s209.yml | 53 +++++++++++++++++++++++++ src/main/resources/application-test.yml | 38 ------------------ 2 files changed, 53 insertions(+), 38 deletions(-) create mode 100644 src/main/resources/application-s209.yml delete mode 100644 src/main/resources/application-test.yml diff --git a/src/main/resources/application-s209.yml b/src/main/resources/application-s209.yml new file mode 100644 index 0000000..dfb29cb --- /dev/null +++ b/src/main/resources/application-s209.yml @@ -0,0 +1,53 @@ +# 生产环境配置 + +# 数据源配置 +spring: + datasource: + url: jdbc:mysql://pgsql:5432/websoft_core?useSSL=false&serverTimezone=UTC + username: websoft_core + password: 6KPnKxCiWDW2XSxE + driver-class-name: com.mysql.cj.jdbc.Driver + type: com.alibaba.druid.pool.DruidDataSource + redis: + database: 0 + host: 1Panel-redis-Q1LE + port: 6379 + password: redis_WSDb88 + +# 日志配置 +logging: + file: + name: websoft-core.log + level: + root: WARN + com.gxwebsoft: ERROR + com.baomidou.mybatisplus: ERROR + +socketio: + host: 0.0.0.0 #IP地址 + +knife4j: + # 开启knife4j增强 + enable: true + # 开启生产环境屏蔽,一定要先开启knife4j增强才会生效 + production: false + +# 框架配置 +config: + # 生产环境接口 + server-url: https://server.gxwebsoft.com/api + upload-path: /www/wwwroot/file.ws/ + + # 阿里云OSS云存储 + endpoint: https://oss-cn-shenzhen.aliyuncs.com + accessKeyId: LTAI4GKGZ9Z2Z8JZ77c3GNZP + accessKeySecret: BiDkpS7UXj72HWwDWaFZxiXjNFBNCM + bucketName: oss-gxwebsoft + bucketDomain: https://oss.wsdns.cn + aliyunDomain: https://oss-gxwebsoft.oss-cn-shenzhen.aliyuncs.com + +# 生产环境证书配置 +certificate: + # 生产环境使用挂载卷模式 + load-mode: VOLUME + cert-root-path: /app/certs diff --git a/src/main/resources/application-test.yml b/src/main/resources/application-test.yml deleted file mode 100644 index 679a412..0000000 --- a/src/main/resources/application-test.yml +++ /dev/null @@ -1,38 +0,0 @@ -# 测试环境配置 -server: - port: 9091 -socketio: - port: 9191 - host: localhost #IP地址 -# 数据源配置 -spring: - datasource: - url: jdbc:mysql://123.207.68.142:3318/jm-love-test?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8 - username: jm-love-test - password: jPNSsJZzeNfTSxhB - driver-class-name: com.mysql.cj.jdbc.Driver - type: com.alibaba.druid.pool.DruidDataSource - -# 日志配置 -logging: - file: - name: websoft-api.log - level: - root: WARN - com.gxwebsoft: ERROR - com.baomidou.mybatisplus: ERROR - -# 框架配置 -config: - # 生产环境接口 - server-url: https://server.jimeigroup.cn/api - file-server: https://file.jimeigroup.cn - upload-path: /wsdata/wwwroot/file.ws/ - - # 阿里云OSS云存储 - endpoint: https://oss-cn-shenzhen.aliyuncs.com - accessKeyId: LTAI5tFcrUsMQQGyjAtGFj7Z - accessKeySecret: rlm9mMxFLmsnVZAvlFi7mjqGfgrawH - bucketName: file-jimei - bucketDomain: https://oss.jimeigroup.cn -