REM:
1. 更新配置文件,支持配置项加密功能
This commit is contained in:
HuangXin 2020-09-18 09:31:51 +08:00
parent 1f786d18bf
commit 22ec62482c
3 changed files with 9 additions and 45 deletions

View File

@ -37,9 +37,9 @@ auth.token-timeout-minute=30
# 2 AES256加密 # 2 AES256加密
crypto.security-protocol-type=0 crypto.security-protocol-type=0
# AES256秘钥 # AES256秘钥
crypto.aes-key=hkoUV5ZWh0q1jSxMnpjovVn19Qg99HY6DD40 crypto.aes-key=ENC@Trf2LEETes3oKnY1CF7LINcm2KlJbJxHIyvERz2174CTzQEhJtuo+PnO+fR3eDf+
# 3DES秘钥 # 3DES秘钥
crypto.des-key=P3mq9iSIvQcvfyfdWR8sAnfAadO crypto.des-key=ENC@JPYbpchhllvf6M+uolBFYOgM2fSyqGChRcnzoOCt6WM=
#信任主机配置 #信任主机配置
# 白名单开关 # 白名单开关
@ -48,4 +48,3 @@ trust.auth-white-list-check=true
trust.auth-host-token=165B2AA40395fA27278E59eEd4DD5EA490DA175344DE2673A5B17D3760E12F0 trust.auth-host-token=165B2AA40395fA27278E59eEd4DD5EA490DA175344DE2673A5B17D3760E12F0
# 白名单主机,多个主机逗号(,)分割 # 白名单主机,多个主机逗号(,)分割
trust.auth-hosts=127.0.0.12,::1 trust.auth-hosts=127.0.0.12,::1

View File

@ -4,16 +4,17 @@ server.tomcat.basedir=./basedir
# 多个项目放在nginx下同个端口通过该配置区分 # 多个项目放在nginx下同个端口通过该配置区分
server.servlet.context-path=/dispose server.servlet.context-path=/dispose
# 配置数据源 # 配置数据源
spring.datasource.url=jdbc:mysql://10.88.77.65:33061/dispose_hx?serverTimezone=Asia/Shanghai&zeroDateTimeBehavior\ spring.datasource.url=jdbc:mysql://10.88.77.65:33061/dispose_test_v2?serverTimezone=Asia/Shanghai&zeroDateTimeBehavior\
=convertToNull&useUnicode=true&characterEncoding=utf8&allowMultiQueries=true =convertToNull&useUnicode=true&characterEncoding=utf8&allowMultiQueries=true
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.username=root spring.datasource.username=root
spring.datasource.password=h0K0_8u spring.datasource.password=ENC@eBlCdflAlcnta81xW9f86A==
#spring.datasource.url=jdbc:mysql://172.28.72.118:33061/dispose_v2?serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull&useUnicode=true #spring.datasource.url=jdbc:mysql://172.28.72.118:33061/dispose_hx_v2?serverTimezone=Asia/Shanghai&zeroDateTimeBehavior\
# =convertToNull&useUnicode=true
#spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver #spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
#spring.datasource.username=phoenix #spring.datasource.username=phoenix
#spring.datasource.password=Hy@rfph32 #spring.datasource.password=ENC@yr1dDL7FO8J642rqx5sD7Q==
# 配置连接池 # 配置连接池
spring.datasource.type=org.apache.commons.dbcp2.BasicDataSource spring.datasource.type=org.apache.commons.dbcp2.BasicDataSource
@ -42,22 +43,4 @@ spring.jackson.mapper.allow-coercion-of-scalars=false
#====custom config,begin with phoenix==== #====custom config,begin with phoenix====
#test #test
phoenix.system-name=phoenix framework phoenix.system-name=phoenix framework
#config the swagger api switch true:可访问;false:不可访问
phoenix.swagger-switch=true
#config which client to use in redis,
#jedis or redisson-sentinel,redisson-single
phoenix.redis.type=redisson-single
#config redis info
#jedis config example>redis://:dfu56li_jdo8pd@172.28.72.111:7379/0,多个用逗号分隔
#redisson sentinel config example>redis://172.28.72.104:28379,redis://172.28.72.124:28380,redis://172.28.72.124:28381
#redisson single config example>redis://172.28.72.104:8380
#phoenix.redis-server=redis://172.28.72.104:8380
phoenix.redis-redisson-sentinel-master-name=mymaster
phoenix.redis-redisson-pwd=cmcc2019
#config request dec switch,true=dec,false=plain do nothing
phoenix.request-dec-switch=false
#config response enc switch,true=enc,false=plain do nothing
phoenix.response-enc-switch=false
#config aes 128 key,用于上述body的加解密
phoenix.aes-key=Wt4EJu6Rrq5udd/42bNpCQ==
#====custom config,begin with phoenix==== #====custom config,begin with phoenix====

View File

@ -8,11 +8,11 @@ spring.datasource.url=jdbc:mysql://10.88.77.65:33061/ci_dispose_v2?serverTimezon
=convertToNull&useUnicode=true&characterEncoding=utf8&allowMultiQueries=true =convertToNull&useUnicode=true&characterEncoding=utf8&allowMultiQueries=true
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.username=root spring.datasource.username=root
spring.datasource.password=h0K0_8u spring.datasource.password=ENC@eBlCdflAlcnta81xW9f86A==
#spring.datasource.url=jdbc:mysql://172.28.72.118:33061/ci_dispose_v2?serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull&useUnicode=true #spring.datasource.url=jdbc:mysql://172.28.72.118:33061/ci_dispose_v2?serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull&useUnicode=true
#spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver #spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
#spring.datasource.username=phoenix #spring.datasource.username=phoenix
#spring.datasource.password=Hy@rfph32 #spring.datasource.password=ENC@yr1dDL7FO8J642rqx5sD7Q==
# 配置连接池 # 配置连接池
spring.datasource.schema=classpath:test_db/unit_test.sql spring.datasource.schema=classpath:test_db/unit_test.sql
@ -43,22 +43,4 @@ spring.jackson.mapper.allow-coercion-of-scalars=false
#====custom config,begin with phoenix==== #====custom config,begin with phoenix====
#test #test
phoenix.system-name=phoenix framework phoenix.system-name=phoenix framework
#config the swagger api switch true:可访问;false:不可访问
phoenix.swagger-switch=true
#config which client to use in redis,
#jedis or redisson-sentinel,redisson-single
phoenix.redis.type=redisson-single
#config redis info
#jedis config example>redis://:dfu56li_jdo8pd@172.28.72.111:7379/0,多个用逗号分隔
#redisson sentinel config example>redis://172.28.72.104:28379,redis://172.28.72.124:28380,redis://172.28.72.124:28381
#redisson single config example>redis://172.28.72.104:8380
#phoenix.redis-server=redis://172.28.72.104:8380
phoenix.redis-redisson-sentinel-master-name=mymaster
phoenix.redis-redisson-pwd=cmcc2019
#config request dec switch,true=dec,false=plain do nothing
phoenix.request-dec-switch=false
#config response enc switch,true=enc,false=plain do nothing
phoenix.response-enc-switch=false
#config aes 128 key,用于上述body的加解密
phoenix.aes-key=Wt4EJu6Rrq5udd/42bNpCQ==
#====custom config,begin with phoenix==== #====custom config,begin with phoenix====