mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-28 04:59:52 +01:00
commit
066057db48
4 changed files with 19 additions and 13 deletions
|
|
@ -12,9 +12,9 @@ spring:
|
||||||
druid:
|
druid:
|
||||||
#MySQL
|
#MySQL
|
||||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||||
url: jdbc:mysql://127.0.0.1:3306/xiaozhi_esp32_server?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true
|
url: jdbc:mysql://turntable.proxy.rlwy.net:38288/railway?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true
|
||||||
username: root
|
username: root
|
||||||
password: 123456
|
password: nrTgFMCdwgjqZFFRXDhDZbCapfPNBxZK
|
||||||
initial-size: 10
|
initial-size: 10
|
||||||
max-active: 100
|
max-active: 100
|
||||||
min-idle: 10
|
min-idle: 10
|
||||||
|
|
@ -38,14 +38,6 @@ spring:
|
||||||
multi-statement-allow: true
|
multi-statement-allow: true
|
||||||
data:
|
data:
|
||||||
redis:
|
redis:
|
||||||
host: 127.0.0.1 # Redis服务器地址
|
host: shortline.proxy.rlwy.net
|
||||||
port: 6379 # Redis服务器连接端口
|
port: 54353
|
||||||
password: # Redis服务器连接密码(默认为空)
|
password: mClDIOpuKWkawXKBcfhWFDwHHnhuWegp
|
||||||
database: 0 # Redis数据库索引(默认为0)
|
|
||||||
timeout: 10000ms # 连接超时时间(毫秒)
|
|
||||||
lettuce:
|
|
||||||
pool:
|
|
||||||
max-active: 8 # 连接池最大连接数(使用负值表示没有限制)
|
|
||||||
max-idle: 8 # 连接池中的最大空闲连接
|
|
||||||
min-idle: 0 # 连接池中的最小空闲连接
|
|
||||||
shutdown-timeout: 100ms # 客户端优雅关闭的等待时间
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
spring.datasource.url=jdbc:mysql://mysql.railway.internal:3306/railway?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true
|
||||||
|
spring.datasource.username=root
|
||||||
|
spring.datasource.password=nrTgFMCdwgjqZFFRXDhDZbCapfPNBxZK
|
||||||
|
|
@ -26,6 +26,14 @@ spring:
|
||||||
enabled: true
|
enabled: true
|
||||||
main:
|
main:
|
||||||
allow-bean-definition-overriding: true
|
allow-bean-definition-overriding: true
|
||||||
|
datasource:
|
||||||
|
url: jdbc:mysql://turntable.proxy.rlwy.net:38288/railway?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true
|
||||||
|
username: root
|
||||||
|
password: nrTgFMCdwgjqZFFRXDhDZbCapfPNBxZK
|
||||||
|
redis:
|
||||||
|
host: shortline.proxy.rlwy.net
|
||||||
|
port: 54353
|
||||||
|
password: mClDIOpuKWkawXKBcfhWFDwHHnhuWegp
|
||||||
|
|
||||||
knife4j:
|
knife4j:
|
||||||
enable: true
|
enable: true
|
||||||
|
|
|
||||||
|
|
@ -241,7 +241,10 @@ databaseChangeLog:
|
||||||
encoding: utf8
|
encoding: utf8
|
||||||
path: classpath:db/changelog/202506261637.sql
|
path: classpath:db/changelog/202506261637.sql
|
||||||
- changeSet:
|
- changeSet:
|
||||||
|
|
||||||
|
|
||||||
id: 202507051233
|
id: 202507051233
|
||||||
|
|
||||||
author: marlonz
|
author: marlonz
|
||||||
changes:
|
changes:
|
||||||
- sqlFile:
|
- sqlFile:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue