mirror of https://github.com/halo-dev/halo
Add application-dev.yaml file support
parent
b0e0abea37
commit
764d5cfa4f
|
@ -0,0 +1,65 @@
|
|||
server:
|
||||
port: 8090
|
||||
use-forward-headers: true
|
||||
undertow:
|
||||
io-threads: 2
|
||||
worker-threads: 36
|
||||
buffer-size: 1024
|
||||
directBuffers: true
|
||||
servlet:
|
||||
session:
|
||||
timeout: 86400s
|
||||
spring:
|
||||
output:
|
||||
ansi:
|
||||
enabled: always
|
||||
datasource:
|
||||
type: com.zaxxer.hikari.HikariDataSource
|
||||
|
||||
# H2database 配置
|
||||
driver-class-name: org.h2.Driver
|
||||
url: jdbc:h2:file:~/halo/halo
|
||||
username: admin
|
||||
password: 123456
|
||||
|
||||
#MySql配置
|
||||
# driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
# url: jdbc:mysql://127.0.0.1:3306/halodb?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai
|
||||
# username: root
|
||||
# password: 123456
|
||||
|
||||
h2:
|
||||
console:
|
||||
settings:
|
||||
web-allow-others: true
|
||||
path: /h2-console
|
||||
enabled: true
|
||||
jpa:
|
||||
hibernate:
|
||||
ddl-auto: update
|
||||
show-sql: true
|
||||
freemarker:
|
||||
allow-request-override: false
|
||||
cache: false
|
||||
check-template-location: true
|
||||
charset: utf-8
|
||||
content-type: text/html
|
||||
expose-request-attributes: false
|
||||
expose-session-attributes: false
|
||||
expose-spring-macro-helpers: true
|
||||
suffix: .ftl
|
||||
settings:
|
||||
auto_import: /spring.ftl as spring
|
||||
servlet:
|
||||
multipart:
|
||||
max-file-size: 10MB
|
||||
max-request-size: 10MB
|
||||
|
||||
# 多语言资源文件路径
|
||||
messages:
|
||||
basename: i18n/messages
|
||||
logging:
|
||||
level:
|
||||
cc.ryanc.halo: DEBUG
|
||||
org.hibernate: ERROR
|
||||
file: ./logs/log.log
|
|
@ -31,9 +31,9 @@ spring:
|
|||
h2:
|
||||
console:
|
||||
settings:
|
||||
web-allow-others: true
|
||||
web-allow-others: false
|
||||
path: /h2-console
|
||||
enabled: true
|
||||
enabled: false
|
||||
jpa:
|
||||
hibernate:
|
||||
ddl-auto: update
|
||||
|
@ -60,6 +60,5 @@ spring:
|
|||
basename: i18n/messages
|
||||
logging:
|
||||
level:
|
||||
cc.ryanc.halo: DEBUG
|
||||
org.hibernate: ERROR
|
||||
cc.ryanc.halo: INFO
|
||||
file: ./logs/log.log
|
||||
|
|
Loading…
Reference in New Issue