mirror of https://github.com/halo-dev/halo
style: collate configuration files. (#540)
parent
e40de371d1
commit
32ed3a9a11
|
@ -3,7 +3,6 @@ server:
|
||||||
forward-headers-strategy: native
|
forward-headers-strategy: native
|
||||||
compression:
|
compression:
|
||||||
enabled: false
|
enabled: false
|
||||||
mime-types: application/javascript,text/css,application/json,application/xml,text/html,text/xml,text/plain
|
|
||||||
spring:
|
spring:
|
||||||
jackson:
|
jackson:
|
||||||
date-format: yyyy-MM-dd HH:mm:ss
|
date-format: yyyy-MM-dd HH:mm:ss
|
||||||
|
@ -13,13 +12,13 @@ spring:
|
||||||
datasource:
|
datasource:
|
||||||
type: com.zaxxer.hikari.HikariDataSource
|
type: com.zaxxer.hikari.HikariDataSource
|
||||||
|
|
||||||
# H2 Database 配置
|
# H2 database configuration.
|
||||||
driver-class-name: org.h2.Driver
|
driver-class-name: org.h2.Driver
|
||||||
url: jdbc:h2:file:~/halo-dev/db/halo
|
url: jdbc:h2:file:~/halo-dev/db/halo
|
||||||
username: admin
|
username: admin
|
||||||
password: 123456
|
password: 123456
|
||||||
|
|
||||||
# MySQL 配置
|
# MySQL database configuration.
|
||||||
# driver-class-name: com.mysql.cj.jdbc.Driver
|
# driver-class-name: com.mysql.cj.jdbc.Driver
|
||||||
# url: jdbc:mysql://127.0.0.1:3306/halo_dev?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
|
# url: jdbc:mysql://127.0.0.1:3306/halo_dev?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
|
||||||
# username: root
|
# username: root
|
||||||
|
|
|
@ -1,25 +1,37 @@
|
||||||
server:
|
server:
|
||||||
port: 8090
|
port: 8090
|
||||||
|
|
||||||
|
# Response data gzip.
|
||||||
|
compression:
|
||||||
|
enabled: false
|
||||||
spring:
|
spring:
|
||||||
datasource:
|
datasource:
|
||||||
type: com.zaxxer.hikari.HikariDataSource
|
|
||||||
|
|
||||||
# H2 Database 配置,如果你需要使用 MySQL,请注释掉该配置并取消注释 MySQL 的配置。
|
# H2 database configuration.
|
||||||
driver-class-name: org.h2.Driver
|
driver-class-name: org.h2.Driver
|
||||||
url: jdbc:h2:file:~/.halo/db/halo
|
url: jdbc:h2:file:~/.halo/db/halo
|
||||||
username: admin
|
username: admin
|
||||||
password: 123456
|
password: 123456
|
||||||
|
|
||||||
# MySQL 配置,如果你需要使用 H2 Database,请注释掉该配置并取消注释上方 H2 Database 的配置。
|
# MySQL database configuration.
|
||||||
# driver-class-name: com.mysql.cj.jdbc.Driver
|
# driver-class-name: com.mysql.cj.jdbc.Driver
|
||||||
# url: jdbc:mysql://127.0.0.1:3306/halodb?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
|
# url: jdbc:mysql://127.0.0.1:3306/halodb?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
|
||||||
# username: root
|
# username: root
|
||||||
# password: 123456
|
# password: 123456
|
||||||
|
|
||||||
# H2 Database 的控制台相关配置,如果你使用的是 MySQL ,请注释掉下方内容。
|
# H2 database console configuration.
|
||||||
h2:
|
h2:
|
||||||
console:
|
console:
|
||||||
settings:
|
settings:
|
||||||
web-allow-others: false
|
web-allow-others: false
|
||||||
path: /h2-console
|
path: /h2-console
|
||||||
enabled: false
|
enabled: false
|
||||||
|
|
||||||
|
halo:
|
||||||
|
|
||||||
|
# Your admin client path is https://your-domain/{admin-path}
|
||||||
|
admin-path: admin
|
||||||
|
|
||||||
|
# memory or level
|
||||||
|
cache: memory
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,6 @@ server:
|
||||||
forward-headers-strategy: native
|
forward-headers-strategy: native
|
||||||
compression:
|
compression:
|
||||||
enabled: false
|
enabled: false
|
||||||
mime-types: application/javascript,text/css,application/json,application/xml,text/html,text/xml,text/plain
|
|
||||||
spring:
|
spring:
|
||||||
jackson:
|
jackson:
|
||||||
date-format: yyyy-MM-dd HH:mm:ss
|
date-format: yyyy-MM-dd HH:mm:ss
|
||||||
|
@ -15,17 +14,17 @@ spring:
|
||||||
datasource:
|
datasource:
|
||||||
type: com.zaxxer.hikari.HikariDataSource
|
type: com.zaxxer.hikari.HikariDataSource
|
||||||
|
|
||||||
# H2 Database 配置
|
# H2 database configuration.
|
||||||
driver-class-name: org.h2.Driver
|
driver-class-name: org.h2.Driver
|
||||||
url: jdbc:h2:file:~/.halo/db/halo
|
url: jdbc:h2:file:~/.halo/db/halo
|
||||||
username: admin
|
username: admin
|
||||||
password: 123456
|
password: 123456
|
||||||
|
|
||||||
# MySQL 配置
|
# MySQL database configuration.
|
||||||
# driver-class-name: com.mysql.cj.jdbc.Driver
|
# driver-class-name: com.mysql.cj.jdbc.Driver
|
||||||
# url: jdbc:mysql://127.0.0.1:3306/halodb?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
|
# url: jdbc:mysql://127.0.0.1:3306/halodb?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
|
||||||
# username: root
|
# username: root
|
||||||
# password: 123456
|
# password: 123456
|
||||||
|
|
||||||
h2:
|
h2:
|
||||||
console:
|
console:
|
||||||
|
|
Loading…
Reference in New Issue