CONFIG:TO PROD

This commit is contained in:
2025-10-28 15:49:59 +08:00
parent 87dc9566c2
commit 262b891013
2 changed files with 21 additions and 10 deletions

View File

@@ -1,4 +1,7 @@
# Spring Boot 应用配置 # Spring Boot 应用配置
# 服务器配置
server:
port: 8771
spring: spring:
# 应用基本信息 # 应用基本信息
@@ -7,8 +10,8 @@ spring:
# 数据源配置 - MySQL # 数据源配置 - MySQL
datasource: datasource:
url: jdbc:mysql://localhost:3306/lanecarford?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai url: jdbc:mysql://18.167.251.121:33008/lanecrawford?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai
username: root username: aida_con
password: 123456 password: 123456
driver-class-name: com.mysql.cj.jdbc.Driver driver-class-name: com.mysql.cj.jdbc.Driver
# HikariCP 连接池配置 # HikariCP 连接池配置
@@ -32,7 +35,7 @@ spring:
min-idle: 0 min-idle: 0
max-wait: 5 max-wait: 5
security: security:
jwtSecret: JWTSECRET jwtSecret: TXacaath8k63fQMAkfuRk3s5GTZyjRpS
jwtTokenHeader: Authorization jwtTokenHeader: Authorization
jwtTokenPrefix: Bearer- jwtTokenPrefix: Bearer-
jwtExpiration: 604800000 jwtExpiration: 604800000
@@ -41,7 +44,7 @@ spring:
mybatis-plus: mybatis-plus:
configuration: configuration:
map-underscore-to-camel-case: true map-underscore-to-camel-case: true
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
global-config: global-config:
db-config: db-config:
logic-delete-field: deleted logic-delete-field: deleted
@@ -49,10 +52,6 @@ mybatis-plus:
logic-not-delete-value: 0 logic-not-delete-value: 0
mapper-locations: classpath*:/mapper/**/*.xml mapper-locations: classpath*:/mapper/**/*.xml
# 服务器配置
server:
port: 8771
# Swagger 文档配置 # Swagger 文档配置
springdoc: springdoc:
api-docs: api-docs:
@@ -66,7 +65,19 @@ logging:
level: level:
com.aida.lanecarford: DEBUG com.aida.lanecarford: DEBUG
# MinIO 对象存储配置
minio:
endpoint: https://www.minio-api.aida.com.hk
access-key: admin
secret-key: Aidlab123123!
bucket-name: lanecarford
# 文件访问URL前缀
url-prefix: ${minio.endpoint}/${minio.bucket-name}/
tencent-cloud: tencent-cloud:
secret-id: AKID52lRwDIBsLaZLtDI9m9LJMAj36wYw50i secret-id: AKID52lRwDIBsLaZLtDI9m9LJMAj36wYw50i
secret-key: XqujLlywhHfrqcCYfYVHtNgmeIiwxkKf secret-key: XqujLlywhHfrqcCYfYVHtNgmeIiwxkKf
sender: info@aida.com.hk sender: info@aida.com.hk
webhook:
domain: http://18.167.251.121:10095

View File

@@ -1,3 +1,3 @@
spring: spring:
profiles: profiles:
active: dev active: prod