app.yml增加对容器环境变量的支持,可不挂载config直接定义配置

This commit is contained in:
谭勇 2023-04-04 17:44:08 +08:00
parent 7b344d6c0c
commit 3185934ff9

View File

@ -4,7 +4,7 @@ server:
neutrino:
proxy:
protocol:
max-frame-length: 2097152
max-frame-length: ${MAX_FRAME_LENGTH:2097152}
length-field-offset: 0
length-field-length: 4
initial-bytes-to-strip: 0
@ -15,20 +15,20 @@ neutrino:
server:
boss-thread-count: 10
work-thread-count: 60
port: 9000
ssl-port: 9002
key-store-password: 123456
key-manager-password: 123456
jks-path: classpath:/test.jks
port: ${OPEN_PORT:9000}
ssl-port: ${SSL_PORT:9002}
key-store-password: ${STORE_PASS:123456}
key-manager-password: ${MGR_PASS:123456}
jks-path: ${JKS_PATH:classpath:/test.jks}
# 如果不配置则不支持代理http
domain-name:
domain-name: ${DOMAIN_NAME:}
data:
db:
type: sqlite
url: jdbc:sqlite:data.db
driver-class: org.sqlite.JDBC
username:
password:
type: ${DB_TYPE:sqlite}
url: ${DB_URL:jdbc:sqlite:data.db}
driver-class: ${DB_DRIVER:org.sqlite.JDBC}
username: ${DB_USER:}
password: ${DB_PASSWORD:}
#添加MIME印射如果有需要
#是否启用静态文件服务。(可不配,默认为启用)
@ -50,4 +50,4 @@ mybatis.db:
cacheEnabled: false
mapUnderscoreToCamelCase: true
globalConfig: #全局配置(要与 GlobalConfig 类的属性一一对应)
banner: true
banner: true