配置优化:添加Actuator健康检查依赖并优化Docker部署配置
This commit is contained in:
@@ -1,45 +1,38 @@
|
||||
spring.application.name=Light
|
||||
# æå¡å¨ç«¯å£é
ç½®
|
||||
server.port=443
|
||||
|
||||
# SSLé
ç½®
|
||||
server.ssl.key-store-type=JKS
|
||||
server.ssl.key-store=/etc/ssl/certs/www.doubleyin.cn.jks
|
||||
server.ssl.key-store-password=${KEY_STORE_PASSWORD}
|
||||
|
||||
# --- MySQL Database Configuration (Remote Server) ---
|
||||
spring.datasource.url=jdbc:mysql://115.190.121.151:3306/light_delivery?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
|
||||
spring.datasource.username=double
|
||||
spring.datasource.password=Hu@ng1998!
|
||||
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
|
||||
|
||||
# JPA / Hibernate Settings
|
||||
spring.jpa.hibernate.ddl-auto=update
|
||||
spring.jpa.show-sql=true
|
||||
spring.jpa.properties.hibernate.format_sql=true
|
||||
# For MySQL
|
||||
spring.jpa.database-platform=org.hibernate.dialect.MySQL8Dialect
|
||||
|
||||
# HikariCP Connection Pool Settings
|
||||
spring.datasource.hikari.maximum-pool-size=10
|
||||
spring.datasource.hikari.minimum-idle=2
|
||||
spring.datasource.hikari.connection-timeout=30000
|
||||
spring.datasource.hikari.idle-timeout=600000
|
||||
spring.datasource.hikari.max-lifetime=1800000
|
||||
|
||||
# ------ WeChat Configuration ------
|
||||
wx.appId=wx1b790fd953ac27bf
|
||||
wx.secret=b38c40c89cc4954472fb45d1e7cc27a4
|
||||
wx.token=huang1998
|
||||
wx.aesKey=lwararkj1BgurX8Qown6yjGNsqd8dEIEddDnYN3iLgc
|
||||
|
||||
# WeChat API URLs
|
||||
wx.api.access-token-url=https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential
|
||||
wx.api.code2session-url=https://api.weixin.qq.com/sns/jscode2session
|
||||
|
||||
# Logging Configuration
|
||||
logging.level.com.light.delivery=INFO
|
||||
|
||||
# JWT Configuration
|
||||
jwt.secret=lightDeliveryProdSecretKey
|
||||
jwt.expiration=86400
|
||||
jwt.expiration=86400
|
||||
|
||||
management.endpoints.web.exposure.include=health,info
|
||||
management.endpoint.health.show-details=always
|
Reference in New Issue
Block a user