From 3185934ff9262e052d60f447b781086a88fdc28e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=AD=E5=8B=87?= Date: Tue, 4 Apr 2023 17:44:08 +0800 Subject: [PATCH] =?UTF-8?q?app.yml=E5=A2=9E=E5=8A=A0=E5=AF=B9=E5=AE=B9?= =?UTF-8?q?=E5=99=A8=E7=8E=AF=E5=A2=83=E5=8F=98=E9=87=8F=E7=9A=84=E6=94=AF?= =?UTF-8?q?=E6=8C=81=EF=BC=8C=E5=8F=AF=E4=B8=8D=E6=8C=82=E8=BD=BDconfig?= =?UTF-8?q?=E7=9B=B4=E6=8E=A5=E5=AE=9A=E4=B9=89=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/app.yml | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/neutrino-proxy-server/src/main/resources/app.yml b/neutrino-proxy-server/src/main/resources/app.yml index 4bd07246..69f2adc1 100644 --- a/neutrino-proxy-server/src/main/resources/app.yml +++ b/neutrino-proxy-server/src/main/resources/app.yml @@ -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 \ No newline at end of file + banner: true