chore(config): 更新配置文件和项目名称信息
- 修改 application.yml 中 server 端口和 redis 主机及密码配置 - 新增 application-yxw.yml 生产环境配置文件,包含数据源、日志、socketio 和阿里云 OSS 配置 - pom.xml 中项目 artifactId 和 name 修改为 yxw-api - 优化配置文件格式及注释,完善定时任务表达式配置
This commit is contained in:
@@ -4,10 +4,10 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
<groupId>com.gxwebsoft</groupId>
|
<groupId>com.gxwebsoft</groupId>
|
||||||
<artifactId>com-gxwebsoft-server</artifactId>
|
<artifactId>yxw-api</artifactId>
|
||||||
<version>1.5.2</version>
|
<version>1.5.2</version>
|
||||||
|
|
||||||
<name>com-gxwebsoft-api</name>
|
<name>yxw-api</name>
|
||||||
<description>WebSoftApi project for Spring Boot</description>
|
<description>WebSoftApi project for Spring Boot</description>
|
||||||
|
|
||||||
<parent>
|
<parent>
|
||||||
|
|||||||
@@ -0,0 +1,50 @@
|
|||||||
|
# 生产环境配置
|
||||||
|
|
||||||
|
# 数据源配置
|
||||||
|
spring:
|
||||||
|
datasource:
|
||||||
|
url: jdbc:mysql://1Panel-mysql-XsWW:3306/yunxinwei?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8
|
||||||
|
username: yunxinwei
|
||||||
|
password: T4xEYiwTdEmS2ZED
|
||||||
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||||
|
type: com.alibaba.druid.pool.DruidDataSource
|
||||||
|
|
||||||
|
# 日志配置
|
||||||
|
logging:
|
||||||
|
file:
|
||||||
|
name: logs/websoft-api.log
|
||||||
|
level:
|
||||||
|
root: INFO
|
||||||
|
com.gxwebsoft: INFO
|
||||||
|
com.baomidou.mybatisplus: ERROR
|
||||||
|
com.alipay.api: INFO
|
||||||
|
logback:
|
||||||
|
rollingpolicy:
|
||||||
|
# file-name-pattern: ${LOG_FILE}.%d{yyyy-MM-dd}.%i.log
|
||||||
|
max-history: 30
|
||||||
|
|
||||||
|
socketio:
|
||||||
|
host: 0.0.0.0 #IP地址
|
||||||
|
# host: localhost
|
||||||
|
|
||||||
|
# 框架配置
|
||||||
|
config:
|
||||||
|
# 生产环境接口
|
||||||
|
server-url: https://yxw-api.websoft.top/api
|
||||||
|
# server-url: https://127.0.0.1:9090/api
|
||||||
|
upload-path: /www/wwwroot/file.ws/
|
||||||
|
|
||||||
|
# 阿里云OSS云存储
|
||||||
|
endpoint: https://oss-cn-shenzhen.aliyuncs.com
|
||||||
|
accessKeyId: LTAI4GKGZ9Z2Z8JZ77c3GNZP
|
||||||
|
accessKeySecret: BiDkpS7UXj72HWwDWaFZxiXjNFBNCM
|
||||||
|
bucketName: oss-yunxinwei
|
||||||
|
bucketDomain: https://oss.wsdns.cn
|
||||||
|
aliyunDomain: https://oss-yunxinwei.oss-cn-shenzhen.aliyuncs.com
|
||||||
|
|
||||||
|
|
||||||
|
#定时表达式
|
||||||
|
cron:
|
||||||
|
alert: 0 30 9 * * ?
|
||||||
|
profit: 0 0/2 * * * ?
|
||||||
|
timeoutOrder: 1 0 0 * * ?
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
# 端口
|
# 端口
|
||||||
server:
|
server:
|
||||||
port: 9200
|
port: 9300
|
||||||
# socketIo
|
# socketIo
|
||||||
socketio:
|
socketio:
|
||||||
port: 9190
|
port: 9190
|
||||||
@@ -47,9 +47,9 @@ spring:
|
|||||||
max-request-size: 100MB
|
max-request-size: 100MB
|
||||||
redis:
|
redis:
|
||||||
database: 7
|
database: 7
|
||||||
host: 1Panel-redis-CnJa
|
host: 1Panel-redis-GmNr
|
||||||
port: 6379
|
port: 6379
|
||||||
password: redis_xGXDip
|
password: redis_t74P8C
|
||||||
|
|
||||||
# 邮件服务器配置
|
# 邮件服务器配置
|
||||||
mail:
|
mail:
|
||||||
|
|||||||
Reference in New Issue
Block a user