记得上下班打卡 | git大法好,push需谨慎

Commit 42ed214b authored by 张国柄's avatar 张国柄

fix config;

parent 34084fe6
...@@ -30,16 +30,4 @@ liquidnet: ...@@ -30,16 +30,4 @@ liquidnet:
port: 27017 port: 27017
user: root user: root
pwd: S&y$6d*JwJ pwd: S&y$6d*JwJ
# gfsdatabasename: liquidnet_mgdb
#以下为各应用需要用到的ip及端口设置
#涉及到ip的地方尽量都放入公共变量,方便统一修改
#以下liquidnet.service.adam.conf.webUrl 对应liquidnet.conf.webUrl 依此类推
service:
adam:
conf:
webUrl: http://192.168.31.205
executor-main:
xxl:
admin:
addresses: 192.168.31.205:8090
#application-dev-end #application-dev-end
\ No newline at end of file
config-server-git: tset config-server-git: test
#application-test-begin
#这里后续添加公共参数值 #这里后续添加公共参数值
liquidnet: liquidnet:
security: security:
username: user username: user
password: user123 password: user123
jwt:
secret: qZHglvNP0n0aOOckHiQXq5JMD468J4eG
expire-ttl: 43200
refresh-ttl: 525600
blacklist_grace_period: 5
mysql: mysql:
urlHostAndPort: smartnet-mysql.lightnet-nonprod.com:3306 urlHostAndPort: 39.106.122.201:3308
username: smartnet username: testmall
password: t6PmYGI52AQc4NR4ez password: zhengzai!mYT
rabbitmq: rabbitmq:
host: amqps://b-4ac8a8f5-8fe2-448b-bc37-990333527213.mq.ap-southeast-1.amazonaws.com host: 127.0.0.1
port: 5671 port: 5672
username: smartnet username: admin
password: 7A8DJ48XBo4WWx6YdL password: admin
knife4j: knife4j:
disable: false disable: false
redis: redis:
host: smartnet-redis.lightnet-nonprod.com host: r-2ze7002ckw5u75fgukpd.redis.rds.aliyuncs.com
port: 6379 port: 6380
# password: password: PO@B!Iud32
mongodb: mongodb:
host: smartnet:a43ljKmK8oqdOO902P@smartnet-nonprod-docdb-docdb.cluster-cgjsqu7tuka2.ap-southeast-1.docdb.amazonaws.com host: 39.106.122.201
port: 27017 port: 27017
gfsdatabasename: liquidnet_mgdb user: root
#以下为各应用需要用到的ip及端口设置 pwd: S&y$6d*JwJ
#涉及到ip的地方尽量都放入公共变量,方便统一修改 #application-test-end
#以下liquidnet.service.adam.conf.webUrl 对应liquidnet.conf.webUrl 依此类推 \ No newline at end of file
service:
adam:
conf:
webUrl: http://13.250.35.194
executor-main:
xxl:
admin:
addresses: 172.18.0.8:8090
#application-dev-end
\ No newline at end of file
liquidnet:
info:
port: 7099
context:
name: liquidnet-client-admin-web
logfile:
path: ./logs
name: client-admin-web
mysql:
database-name: liquidnet_admin
\ No newline at end of file
liquidnet:
info:
port: 7099
context:
name: liquidnet-client-admin-web
logfile:
path: ./logs
name: client-admin-web
mysql:
database-name: liquidnet_admin
\ No newline at end of file
liquidnet:
info:
context: /
name: liquidnet-client-job
port: 8090
logfile:
name: client-job
path: ./logs
mysql:
database-name: liquidnet_clijob
\ No newline at end of file
liquidnet:
info:
context: /
name: liquidnet-client-job
port: 8090
logfile:
name: client-job
path: ./logs
mysql:
database-name: liquidnet_clijob
\ No newline at end of file
liquidnet:
info:
port: 9003
context: /service-account
name: liquidnet-service-account
logfile:
path: ./logs
name: service-account
mysql:
database-name: liquidnet_wac
liquidnet:
info:
port: 9003
context: /service-account
name: liquidnet-service-account
logfile:
path: ./logs
name: service-account
mysql:
database-name: liquidnet_wac
...@@ -5,7 +5,6 @@ liquidnet: ...@@ -5,7 +5,6 @@ liquidnet:
info: info:
port: 9001 port: 9001
context: context:
# context: /service-adam
name: liquidnet-service-adam name: liquidnet-service-adam
logfile: logfile:
path: ./logs path: ./logs
...@@ -18,28 +17,9 @@ liquidnet: ...@@ -18,28 +17,9 @@ liquidnet:
level-root: info level-root: info
mysql: mysql:
database-name: ln_adam database-name: ln_adam
mybatis-plus:
log-level: debug
aliyun: aliyun:
accessKeyId: accessKeyId:
accessSecret: accessSecret:
# conf:
# webUrl: ${liquidnet.service.adam.conf.webUrl}
# user:
# md5Prefix: liquid
# md5Suffix: net
# des:
# key: liquidnet
# email:
# sender:
# host: liquidnet@lightnet.io
# password: cbwcimjwiryrshjt
# smtp: smtp.gmail.com
# login:
# time-out: 6000
# token:
# key: user_token
# expire-time: 3000
#以下为spring各环境个性配置 #以下为spring各环境个性配置
spring: spring:
...@@ -82,10 +62,7 @@ spring: ...@@ -82,10 +62,7 @@ spring:
transportMode: "NIO" transportMode: "NIO"
data: data:
mongodb: mongodb:
# uri: mongodb://${liquidnet.mongodb.host}:${liquidnet.mongodb.port}/ln_adam_mdb
#本地测试证书
sslEnabled: false sslEnabled: false
database: ln_adam_mdb database: ln_adam_mdb
trustStore: trustStore:
trustStorePassword: trustStorePassword:
# uri: mongodb://smartnet:a43ljKmK8oqdOO902P@smartnet-nonprod-docdb-docdb.cluster-cgjsqu7tuka2.ap-southeast-1.docdb.amazonaws.com:27017/liquidnet_mgdb?ssl=true&ssl_ca_certs=/Users/anjiabin/Downloads/rds-combined-ca-bundle.pem&replicaSet=rs0&readPreference=secondaryPreferred&retryWrites=false
...@@ -5,7 +5,6 @@ liquidnet: ...@@ -5,7 +5,6 @@ liquidnet:
info: info:
port: 9001 port: 9001
context: context:
# context: /service-adam
name: liquidnet-service-adam name: liquidnet-service-adam
logfile: logfile:
path: ./logs path: ./logs
...@@ -17,26 +16,10 @@ liquidnet: ...@@ -17,26 +16,10 @@ liquidnet:
pattern-rolling-file-name: ${liquidnet.logfile.path}/${liquidnet.logfile.name}-%d{yyyy-MM-dd}.%i.log pattern-rolling-file-name: ${liquidnet.logfile.path}/${liquidnet.logfile.name}-%d{yyyy-MM-dd}.%i.log
level-root: info level-root: info
mysql: mysql:
database-name: ln_adam database-name: test_ln_adam
mybatis-plus: aliyun:
log-level: debug accessKeyId:
# conf: accessSecret:
# webUrl: ${liquidnet.service.adam.conf.webUrl}
# user:
# md5Prefix: liquid
# md5Suffix: net
# des:
# key: liquidnet
# email:
# sender:
# host: liquidnet@lightnet.io
# password: cbwcimjwiryrshjt
# smtp: smtp.gmail.com
# login:
# time-out: 6000
# token:
# key: user_token
# expire-time: 3000
#以下为spring各环境个性配置 #以下为spring各环境个性配置
spring: spring:
...@@ -48,7 +31,7 @@ spring: ...@@ -48,7 +31,7 @@ spring:
redis: redis:
port: ${liquidnet.redis.port} port: ${liquidnet.redis.port}
host: ${liquidnet.redis.host} host: ${liquidnet.redis.host}
# password: ${liquidnet.redis.password} password: ${liquidnet.redis.password}
lettuce: lettuce:
pool: pool:
max-active: 8 max-active: 8
...@@ -58,7 +41,7 @@ spring: ...@@ -58,7 +41,7 @@ spring:
redisson: redisson:
singleServerConfig: singleServerConfig:
address: redis://${liquidnet.redis.host}:${liquidnet.redis.port} address: redis://${liquidnet.redis.host}:${liquidnet.redis.port}
# password: ${liquidnet.redis.password} password: ${liquidnet.redis.password}
clientName: null clientName: null
database: 7 #选择使用哪个数据库0~15 database: 7 #选择使用哪个数据库0~15
idleConnectionTimeout: 10000 idleConnectionTimeout: 10000
...@@ -79,8 +62,7 @@ spring: ...@@ -79,8 +62,7 @@ spring:
transportMode: "NIO" transportMode: "NIO"
data: data:
mongodb: mongodb:
sslEnabled: true sslEnabled: false
trustStore: /app/certs/rds-truststore.jks database: test_ln_adam_mdb
trustStorePassword: LiquidNet!@#4 trustStore:
#mongodb://smartnet:<insertYourPassword>@smartnet-nonprod-docdb-docdb.cluster-cgjsqu7tuka2.ap-southeast-1.docdb.amazonaws.com:27017/?ssl=true&ssl_ca_certs=rds-combined-ca-bundle.pem&replicaSet=rs0&readPreference=secondaryPreferred&retryWrites=false trustStorePassword:
uri: mongodb://${liquidnet.mongodb.host}:${liquidnet.mongodb.port}/${liquidnet.mongodb.gfsdatabasename}?ssl=true&ssl_ca_certs=/app/rds-combined-ca-bundle.pem&replicaSet=rs0&readPreference=secondaryPreferred&retryWrites=false
liquidnet:
info:
port: 9002
context: /service-bank
name: liquidnet-service-bank
logfile:
path: ./logs
name: service-bank
config: classpath:logback-spring.xml
file-max-size: 200MB
pattern-file: '%d{yyyy-MM-dd HH:mm:ss.SSS} [ %-5level] %thread [%logger{96}:%line] - %msg%n'
pattern-console: '%d{yyyy-MM-dd HH:mm:ss.SSS} [ %-5level] %thread [%logger{96}:%line] - %msg%n'
pattern-rolling-file-name: ${liquidnet.logfile.path}/${liquidnet.logfile.name}-%d{yyyy-MM-dd}.%i.log
level-root: info
mysql:
database-name: liquidnet_bank
conf:
currencycloud:
email_address: liquidnet@lightnet.io
auth:
environment: demo
login_id: michael.ran@lightnet.io
api_key: 745dbaee98a8b7115df3696b6fa7b48959294c34117e7240ebcd1e07268a9bad
#以下为spring各环境个性配置
spring:
rabbitmq:
addresses: ${liquidnet.rabbitmq.host}
port: ${liquidnet.rabbitmq.port}
username: ${liquidnet.rabbitmq.username}
password: ${liquidnet.rabbitmq.password}
redis:
port: ${liquidnet.redis.port}
host: ${liquidnet.redis.host}
# password: ${liquidnet.redis.password}
lettuce:
pool:
max-active: 8
max-wait: -1
max-idle: 8
min-idle: 0
data:
mongodb:
uri: mongodb://${liquidnet.mongodb.host}:${liquidnet.mongodb.port}/${liquidnet.mongodb.gfsdatabasename}?ssl=true&ssl_ca_certs=rds-combined-ca-bundle.pem&replicaSet=rs0&readPreference=secondaryPreferred&retryWrites=false
liquidnet:
info:
port: 9002
context: /service-bank
name: liquidnet-service-bank
logfile:
path: ./logs
name: service-bank
config: classpath:logback-spring.xml
file-max-size: 200MB
pattern-file: '%d{yyyy-MM-dd HH:mm:ss.SSS} [ %-5level] %thread [%logger{96}:%line] - %msg%n'
pattern-console: '%d{yyyy-MM-dd HH:mm:ss.SSS} [ %-5level] %thread [%logger{96}:%line] - %msg%n'
pattern-rolling-file-name: ${liquidnet.logfile.path}/${liquidnet.logfile.name}-%d{yyyy-MM-dd}.%i.log
level-root: info
mysql:
database-name: liquidnet_bank
conf:
currencycloud:
email_address: liquidnet@lightnet.io
auth:
environment: demo
login_id: michael.ran@lightnet.io
api_key: 745dbaee98a8b7115df3696b6fa7b48959294c34117e7240ebcd1e07268a9bad
#以下为spring各环境个性配置
spring:
rabbitmq:
addresses: ${liquidnet.rabbitmq.host}
port: ${liquidnet.rabbitmq.port}
username: ${liquidnet.rabbitmq.username}
password: ${liquidnet.rabbitmq.password}
redis:
port: ${liquidnet.redis.port}
host: ${liquidnet.redis.host}
# password: ${liquidnet.redis.password}
lettuce:
pool:
max-active: 8
max-wait: -1
max-idle: 8
min-idle: 0
data:
mongodb:
trustStore: /app/certs/rds-truststore.jks
trustStorePassword: LiquidNet!@#4
#mongodb://smartnet:<insertYourPassword>@smartnet-nonprod-docdb-docdb.cluster-cgjsqu7tuka2.ap-southeast-1.docdb.amazonaws.com:27017/?ssl=true&ssl_ca_certs=rds-combined-ca-bundle.pem&replicaSet=rs0&readPreference=secondaryPreferred&retryWrites=false
uri: mongodb://${liquidnet.mongodb.host}:${liquidnet.mongodb.port}/${liquidnet.mongodb.gfsdatabasename}?ssl=true&ssl_ca_certs=/app/rds-combined-ca-bundle.pem&replicaSet=rs0&readPreference=secondaryPreferred&retryWrites=false
liquidnet:
info:
port: 9000
context: /service-example
name: liquidnet-service-example
logfile:
path: ./logs
name: service-example
mysql:
database-name: liquidnet_bus
liquidnet:
info:
port: 9000
context: /service-example
name: liquidnet-service-example
logfile:
path: ./logs
name: service-example
mysql:
database-name: liquidnet_bus
liquidnet:
info:
port: 8190
context: /service-executor-main
name: liquidnet-service-executor-main
logfile:
path: ./logs
name: service-executor-main
xxl:
accessToken: qk52rqSejRBm9enf6BTTxw==
admin:
# Job执行器注册地址,多个地址则用逗号分隔
addresses: ${liquidnet.service.executor-main.xxl.admin.addresses}
executor:
# Job执行器IP,默认为空表示自动获取IP,多网卡时手动指定
ip:
# Job执行器端口,单机多个执行器端口号不能相同
port: 8191
# Job执行器心跳注册分组依据,按需配置
appname: liquidnet-service-executor
# Job执行器运行日志,注意目录读写权限
logpath: ./logs/job
liquidnet:
info:
port: 8190
context: /service-executor-main
name: liquidnet-service-executor-main
logfile:
path: ./logs
name: service-executor-main
xxl:
accessToken: qk52rqSejRBm9enf6BTTxw==
admin:
# Job执行器注册地址,多个地址则用逗号分隔
addresses: ${liquidnet.service.executor-main.xxl.admin.addresses}
executor:
# Job执行器IP,默认为空表示自动获取IP,多网卡时手动指定
ip:
# Job执行器端口,单机多个执行器端口号不能相同
port: 8191
# Job执行器心跳注册分组依据,按需配置
appname: liquidnet-service-executor
# Job执行器运行日志,注意目录读写权限
logpath: ./logs/job
...@@ -5,7 +5,6 @@ liquidnet: ...@@ -5,7 +5,6 @@ liquidnet:
info: info:
port: 9002 port: 9002
context: context:
# context: /service-kylin
name: liquidnet-service-kylin name: liquidnet-service-kylin
logfile: logfile:
path: ./logs path: ./logs
...@@ -18,25 +17,6 @@ liquidnet: ...@@ -18,25 +17,6 @@ liquidnet:
level-root: info level-root: info
mysql: mysql:
database-name: ln_kylin database-name: ln_kylin
mybatis-plus:
log-level: debug
# conf:
# webUrl: ${liquidnet.service.kylin.conf.webUrl}
# user:
# md5Prefix: liquid
# md5Suffix: net
# des:
# key: liquidnet
# email:
# sender:
# host: liquidnet@lightnet.io
# password: cbwcimjwiryrshjt
# smtp: smtp.gmail.com
# login:
# time-out: 6000
# token:
# key: user_token
# expire-time: 3000
#以下为spring各环境个性配置 #以下为spring各环境个性配置
spring: spring:
...@@ -79,11 +59,7 @@ spring: ...@@ -79,11 +59,7 @@ spring:
transportMode: "NIO" transportMode: "NIO"
data: data:
mongodb: mongodb:
# uri: mongodb://${liquidnet.mongodb.host}:${liquidnet.mongodb.port}/ln_kylin_mdb
#本地测试证书
# uri: mongodb://${liquidnet.mongodb.user}:${liquidnet.mongodb.pwd}@${liquidnet.mongodb.host}:${liquidnet.mongodb.port}/?authSource=admin
sslEnabled: false sslEnabled: false
database: ln_kylin_mdb database: ln_kylin_mdb
trustStore: trustStore:
trustStorePassword: trustStorePassword:
# uri: mongodb://smartnet:a43ljKmK8oqdOO902P@smartnet-nonprod-docdb-docdb.cluster-cgjsqu7tuka2.ap-southeast-1.docdb.amazonaws.com:27017/liquidnet_mgdb?ssl=true&ssl_ca_certs=/Users/anjiabin/Downloads/rds-combined-ca-bundle.pem&replicaSet=rs0&readPreference=secondaryPreferred&retryWrites=false
...@@ -3,13 +3,12 @@ liquidnet: ...@@ -3,13 +3,12 @@ liquidnet:
updating: updating:
switch: false switch: false
info: info:
port: 9001 port: 9002
context: context:
# context: /service-adam name: liquidnet-service-kylin
name: liquidnet-service-adam
logfile: logfile:
path: ./logs path: ./logs
name: service-adam name: service-kylin
config: classpath:logback-spring.xml config: classpath:logback-spring.xml
file-max-size: 200MB file-max-size: 200MB
pattern-file: '%d{yyyy-MM-dd HH:mm:ss.SSS} [ %-5level] %thread [%logger{96}:%line] - %msg%n' pattern-file: '%d{yyyy-MM-dd HH:mm:ss.SSS} [ %-5level] %thread [%logger{96}:%line] - %msg%n'
...@@ -17,26 +16,7 @@ liquidnet: ...@@ -17,26 +16,7 @@ liquidnet:
pattern-rolling-file-name: ${liquidnet.logfile.path}/${liquidnet.logfile.name}-%d{yyyy-MM-dd}.%i.log pattern-rolling-file-name: ${liquidnet.logfile.path}/${liquidnet.logfile.name}-%d{yyyy-MM-dd}.%i.log
level-root: info level-root: info
mysql: mysql:
database-name: ln_adam database-name: test_ln_scene
mybatis-plus:
log-level: info
# conf:
# webUrl: ${liquidnet.service.adam.conf.webUrl}
# user:
# md5Prefix: liquid
# md5Suffix: net
# des:
# key: liquidnet
# email:
# sender:
# host: liquidnet@lightnet.io
# password: cbwcimjwiryrshjt
# smtp: smtp.gmail.com
# login:
# time-out: 6000
# token:
# key: user_token
# expire-time: 3000
#以下为spring各环境个性配置 #以下为spring各环境个性配置
spring: spring:
...@@ -48,7 +28,7 @@ spring: ...@@ -48,7 +28,7 @@ spring:
redis: redis:
port: ${liquidnet.redis.port} port: ${liquidnet.redis.port}
host: ${liquidnet.redis.host} host: ${liquidnet.redis.host}
# password: ${liquidnet.redis.password} password: ${liquidnet.redis.password}
lettuce: lettuce:
pool: pool:
max-active: 8 max-active: 8
...@@ -57,10 +37,8 @@ spring: ...@@ -57,10 +37,8 @@ spring:
min-idle: 0 min-idle: 0
redisson: redisson:
singleServerConfig: singleServerConfig:
# address: "redis://34.92.245.187:6379"
address: redis://${liquidnet.redis.host}:${liquidnet.redis.port} address: redis://${liquidnet.redis.host}:${liquidnet.redis.port}
# password: ${liquidnet.redis.password} password: ${liquidnet.redis.password}
# password: Lightnet12!
clientName: null clientName: null
database: 7 #选择使用哪个数据库0~15 database: 7 #选择使用哪个数据库0~15
idleConnectionTimeout: 10000 idleConnectionTimeout: 10000
...@@ -81,9 +59,7 @@ spring: ...@@ -81,9 +59,7 @@ spring:
transportMode: "NIO" transportMode: "NIO"
data: data:
mongodb: mongodb:
sslEnabled: true sslEnabled: false
trustStore: /app/certs/rds-truststore.jks database: test_ln_kylin_mdb
trustStorePassword: LiquidNet!@#4 trustStore:
#mongodb://smartnet:<insertYourPassword>@smartnet-nonprod-docdb-docdb.cluster-cgjsqu7tuka2.ap-southeast-1.docdb.amazonaws.com:27017/?ssl=true&ssl_ca_certs=rds-combined-ca-bundle.pem&replicaSet=rs0&readPreference=secondaryPreferred&retryWrites=false trustStorePassword:
uri: mongodb://${liquidnet.mongodb.host}:${liquidnet.mongodb.port}/${liquidnet.mongodb.gfsdatabasename}?ssl=true&ssl_ca_certs=/app/rds-combined-ca-bundle.pem&replicaSet=rs0&readPreference=secondaryPreferred&retryWrites=false
liquidnet:
test: example-012
info:
port: 9004
context: /service-reconciliation
name: liquidnet-service-reconciliation
logfile:
path: ./logs
name: service-reconciliation
mysql:
main-db:
# urlHostAndPort: ${liquidnet.mysql.urlHostAndPort}
urlHostAndPort: 127.0.0.1:3306
database-name: liquidnet_reconciliation
username: root
password: root
# username: ${liquidnet.mysql.username}
# password: ${liquidnet.mysql.password}
acs-db:
urlHostAndPort: ${liquidnet.mysql.urlHostAndPort}
database-name: liquidnet_wac
username: ${liquidnet.mysql.username}
password: ${liquidnet.mysql.password}
adam-db:
urlHostAndPort: ${liquidnet.mysql.urlHostAndPort}
database-name: liquidnet_adam
username: ${liquidnet.mysql.username}
password: ${liquidnet.mysql.password}
liquidnet:
test: example-012
info:
port: 9004
context: /service-reconciliation
name: liquidnet-service-reconciliation
logfile:
path: ./logs
name: service-reconciliation
mysql:
main-db:
# urlHostAndPort: ${liquidnet.mysql.urlHostAndPort}
urlHostAndPort: 127.0.0.1:3306
database-name: liquidnet_reconciliation
username: root
password: root
# username: ${liquidnet.mysql.username}
# password: ${liquidnet.mysql.password}
acs-db:
urlHostAndPort: ${liquidnet.mysql.urlHostAndPort}
database-name: liquidnet_wac
username: ${liquidnet.mysql.username}
password: ${liquidnet.mysql.password}
adam-db:
urlHostAndPort: ${liquidnet.mysql.urlHostAndPort}
database-name: liquidnet_adam
username: ${liquidnet.mysql.username}
password: ${liquidnet.mysql.password}
# begin-dev-这里是配置信息基本值
liquidnet:
info:
port: 8999
context: /service-sequence
name: liquidnet-service-sequence
logfile:
path: ./logs
name: service-sequence
mysql:
database-name: liquidnet_seq
# end-dev-这里是配置信息基本值
# begin-dev-这里是配置信息基本值
liquidnet:
info:
port: 8999
context: /service-sequence
name: liquidnet-service-sequence
logfile:
path: ./logs
name: service-sequence
mysql:
database-name: liquidnet_seq
# end-dev-这里是配置信息基本值
# begin-dev-这里是配置信息基本值
liquidnet:
info:
port: 8999
context: /service-sequence
name: liquidnet-service-sequence
logfile:
path: ./logs
name: service-sequence
mysql:
database-name: liquidnet_seq
# end-dev-这里是配置信息基本值
# begin-dev-配置模板
server:
port: ${liquidnet.info.port}
tomcat:
uri-encoding: UTF-8
servlet:
context-path: ${liquidnet.info.context}
# -----------------------------------------------------------
spring:
application:
name: ${liquidnet.info.name}
profiles:
include: common-service #这里加载management相关公共配置
cloud:
# bus:
# destination: springCloudBus.${liquidnet.info.name}.port${liquidnet.info.port}
# trace:
# enabled: true
refresh:
extra-refreshable: none
datasource:
name: liquidnet_bus_db
url: jdbc:mysql://${liquidnet.mysql.urlHostAndPort}/${liquidnet.mysql.database-name}?serverTimezone=UTC&zeroDateTimeBehavior=convertToNull&characterEncoding=utf-8&useSSL=false&autoReconnect=true
username: ${liquidnet.mysql.username}
password: ${liquidnet.mysql.password}
# type: org.apache.tomcat.jdbc.pool.DataSource
driver-class-name: com.mysql.cj.jdbc.Driver
filters: stat
maxActive: 20
initialSize: 1
maxWait: 60000
minIdle: 1
timeBetweenEvictionRunsMillis: 60000
minEvictableIdleTimeMillis: 300000
validationQuery: select 'x'
testWhileIdle: true
testOnBorrow: false
testOnReturn: false
poolPreparedStatements: true
maxOpenPreparedStatements: 20
rabbitmq:
addresses: ${liquidnet.rabbitmq.host}
port: ${liquidnet.rabbitmq.port}
username: ${liquidnet.rabbitmq.username}
password: ${liquidnet.rabbitmq.password}
# -----------------------------------------------------------
knife4j:
production: ${liquidnet.knife4j.disable}
basic:
enable: true
username: ${liquidnet.security.username}
password: ${liquidnet.security.password}
# -----------------------------------------------------------
logging:
file:
name: ${liquidnet.logfile.path}/${liquidnet.logfile.name}.log
max-size: 200MB
pattern:
file: '%d{yyyy-MM-dd HH:mm:ss.SSS} [ %-5level] %thread [%logger{96}:%line] - %msg%n'
console: '%d{yyyy-MM-dd HH:mm:ss.SSS} [ %-5level] %thread [%logger{96}:%line] - %msg%n'
rolling-file-name: ${liquidnet.logfile.path}/${liquidnet.logfile.name}-%d{yyyy-MM-dd}.%i.log
level:
root: info
#以下是为指定包设置日志级别
# com:
# liquidnet: info
# -----------------------------------------------------------
eureka:
# client:
# register-with-eureka: true
# fetch-registry: true
# serviceUrl:
# defaultZone: http://${liquidnet.security.username}:${liquidnet.security.password}@${liquidnet.eureka.host}/eureka-server/eureka
instance:
hostname: ${spring.cloud.client.ip-address}
lease-expiration-duration-in-seconds: 15 #服务过期时间配置,超过这个时间没有接收到心跳EurekaServer就会将这个实例剔除
lease-renewal-interval-in-seconds: 5 #服务刷新时间配置,每隔这个时间会主动心跳一次
prefer-ip-address: true
instance-id: ${spring.application.name}:${spring.cloud.client.ip-address}:${spring.application.instance_id:${server.port}}
# -----------------------------------------------------------
#actuator/info
info:
app:
name: ${liquidnet.info.name}
company:
name: lightnet.io
build:
groupId: '@project.groupId@'
artifactId: '@project.artifactId@'
version: '@project.version@'
# -----------------------------------------------------------
# begin-end-配置模板
liquidnet: liquidnet:
info: info:
port: 7003 port: 7003
# context: /support-zuul
name: liquidnet-support-zuul name: liquidnet-support-zuul
logfile: logfile:
path: ./logs path: ./logs
......
liquidnet:
info:
port: 7003
# context: /support-zuul
name: liquidnet-support-zuul
logfile:
path: ./logs
name: support-zuul
\ No newline at end of file
liquidnet: liquidnet:
info: info:
port: 7003 port: 7003
# context: /support-zuul
name: liquidnet-support-zuul name: liquidnet-support-zuul
logfile: logfile:
path: ./logs path: ./logs
......
...@@ -4,14 +4,6 @@ server: ...@@ -4,14 +4,6 @@ server:
uri-encoding: UTF-8 uri-encoding: UTF-8
servlet: servlet:
context-path: context-path:
# context-path: ${liquidnet.info.context}
# server:
# tomcat:
# accept-count: 500
# max-threads: 500
# min-spare-threads: 100
# max-connections: 1000
# connection-timeout: 5000
# ----------------------------------------------------------- # -----------------------------------------------------------
knife4j: knife4j:
production: ${liquidnet.knife4j.disable} production: ${liquidnet.knife4j.disable}
...@@ -42,11 +34,6 @@ spring: ...@@ -42,11 +34,6 @@ spring:
- org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration - org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration
profiles: profiles:
include: common-service include: common-service
# cloud:
# bus:
# destination: springCloudBus.${liquidnet.info.name}.port${liquidnet.info.port}
# trace:
# enabled: true
redis: redis:
port: ${liquidnet.redis.port} port: ${liquidnet.redis.port}
host: ${liquidnet.redis.host} host: ${liquidnet.redis.host}
...@@ -76,11 +63,7 @@ zuul: ...@@ -76,11 +63,7 @@ zuul:
# 忽略的服务,有些后端服务是不需要让网管代理的,防止服务侵入 # 忽略的服务,有些后端服务是不需要让网管代理的,防止服务侵入
ignored-services: "*" ignored-services: "*"
# 忽略的接口,屏蔽接口 # 忽略的接口,屏蔽接口
# ignored-patterns: /**/div/** # ignored-patterns: /**/div/**
# 以下为禁用某个过滤器
# XXXFilter: # 类的名字
# pre: # 类型
# disable: true
# ----------------------------------------------------------- # -----------------------------------------------------------
global: global:
login: login:
...@@ -105,8 +88,8 @@ global: ...@@ -105,8 +88,8 @@ global:
ribbon: ribbon:
eureka: eureka:
enabled: true # 为Ribbon禁用Eureka enabled: true # 为Ribbon禁用Eureka
ReadTimeout: 60000 ReadTimeout: 5000
SocketTimeout: 60000 SocketTimeout: 5000
#liquidnet-service-sequence: #liquidnet-service-sequence:
# ribbon: # ribbon:
# listOfServers: 192.168.137.1:9001 # listOfServers: 192.168.137.1:9001
...@@ -117,5 +100,5 @@ hystrix: ...@@ -117,5 +100,5 @@ hystrix:
execution: execution:
isolation: isolation:
thread: thread:
timeoutInMilliseconds: 60000 timeoutInMilliseconds: 30000
# ----------------------------------------------------------- # -----------------------------------------------------------
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment