Ryan Wang 👍
我确实是登录的halo账户,然后修改的Application.yaml
。
下面是我的配置文件,它是合理的吗?
server:
port: 8090
# Response data gzip.
compression:
enabled: false
spring:
datasource:
# H2 database configuration.
driver-class-name: org.h2.Driver
url: jdbc:h2:file:~/.halo/db/halo
username: ***
password: ***
# MySQL database configuration.
# driver-class-name: com.mysql.cj.jdbc.Driver
# url: jdbc:mysql://127.0.0.1:3306/halo?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
# username: ***
# password: ***
# H2 database console configuration.
h2:
console:
settings:
web-allow-others: true
path: /h2-console
enabled: true
halo:
# Your admin client path is https://your-domain/{admin-path}
admin-path: admin
# memory or level
cache: memory