使用dokcer部署,在/root/.halo2 对应的宿主机目录下增加了application.yaml
server:
port: 8090
compression:
enabled: false
spring:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://****:3306/halo?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
username: ******
password: ******
sql:
init:
platform: mysql
r2dbc:
url: jdbc:mysql://*****:3306/halo?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
username: ******
password: ******
halo:
Your admin client path
admin-path: admin
memory or level
cache: memory
security:
initializer:
superadminusername: admin
superadminpassword: halo_pwd_2023
启动后使用的还是默认的H2数据库,请教下怎么配置才能使用外置的mysql