记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
董敬伟
liquidnet-bus-v1
Commits
4a8ebf41
Commit
4a8ebf41
authored
Apr 20, 2022
by
张国柄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
~config:opt;
parent
3fc38067
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
143 additions
and
20 deletions
+143
-20
application-dev.yml
...net-support-config/src/main/resources/application-dev.yml
+7
-5
application-prod.yml
...et-support-config/src/main/resources/application-prod.yml
+7
-5
application-support-config.yml
...-config/src/main/resources/application-support-config.yml
+6
-5
application-test.yml
...et-support-config/src/main/resources/application-test.yml
+7
-5
application-dev.yml
...net-support-eureka/src/main/resources/application-dev.yml
+58
-0
application-prod.yml
...et-support-eureka/src/main/resources/application-prod.yml
+58
-0
No files found.
liquidnet-bus-support/liquidnet-support-config/src/main/resources/application-dev.yml
View file @
4a8ebf41
...
...
@@ -10,13 +10,15 @@ liquidnet:
logfile
:
path
:
/data/logs
name
:
support-config
max-history
:
7
level
:
debug
eureka
:
host
:
127.0.0.1:7001
rabbitmq
:
host
:
127.0.0.1
port
:
5672
username
:
admin
password
:
admin
#
rabbitmq:
#
host: 127.0.0.1
#
port: 5672
#
username: admin
#
password: admin
config
:
# location: /Users/hujiachen/IdeaProjects/liquidnet-bus-v1/liquidnet-bus-config/liquidnet-config
location
:
/app/support-config
...
...
liquidnet-bus-support/liquidnet-support-config/src/main/resources/application-prod.yml
View file @
4a8ebf41
...
...
@@ -10,13 +10,15 @@ liquidnet:
logfile
:
path
:
/data/logs
name
:
support-config
max-history
:
7
level
:
error
eureka
:
host
:
172.17.207.189:7001
rabbitmq
:
host
:
127.0.0.1
port
:
5672
username
:
admin
password
:
admin
#
rabbitmq:
#
host: 127.0.0.1
#
port: 5672
#
username: admin
#
password: admin
config
:
location
:
/data/config/support-config
# end-prod-这里是配置信息基本值
...
...
liquidnet-bus-support/liquidnet-support-config/src/main/resources/application-support-config.yml
View file @
4a8ebf41
...
...
@@ -156,15 +156,16 @@ logging:
file
:
name
:
${liquidnet.logfile.path}/${liquidnet.logfile.name}.log
max-size
:
200MB
max-history
:
${liquidnet.logfile.max-history}
pattern
:
file
:
'
%d{yyyy-MM-dd
HH:mm:ss.SSS}
[
%-5level]
%thread
[%logger{9
6}:%line]
-
%msg%n'
console
:
'
%d{yyyy-MM-dd
HH:mm:ss.SSS}
[
%-5level]
%thread
[%logger{9
6}:%line]
-
%msg%n'
file
:
'
%d{yyyy-MM-dd
HH:mm:ss.SSS}
%-5level
%X{lnsTranceId}
[%logger{5
6}:%line]
-
%msg%n'
console
:
'
%d{yyyy-MM-dd
HH:mm:ss.SSS}
%-5level
%X{lnsTranceId}
[%logger{5
6}:%line]
-
%msg%n'
rolling-file-name
:
${liquidnet.logfile.path}/${liquidnet.logfile.name}-%d{yyyy-MM-dd}.%i.log
level
:
root
:
info
root
:
error
#以下是为指定包设置日志级别
# com:
# liquidnet: info
com.liquidnet.service.feign
:
error
com.liquidnet
:
${liquidnet.logfile.level}
# -----------------------------------------------------------
eureka
:
client
:
...
...
liquidnet-bus-support/liquidnet-support-config/src/main/resources/application-test.yml
View file @
4a8ebf41
...
...
@@ -10,6 +10,8 @@ liquidnet:
logfile
:
path
:
/data/logs
name
:
support-config
max-history
:
7
level
:
info
eureka
:
host
:
172.17.207.177:7001
#instance:
...
...
@@ -17,11 +19,11 @@ liquidnet:
#host: eureka-test-0.eureka-test-svc.zhengzai-test:7001/eureka-server/eureka,eureka-test-1.eureka-test-svc.zhengzai-test:7001/eureka-server/eureka,eureka-test-2.eureka-test-svc.zhengzai-test:7001/eureka-server/eureka
rabbitmq
:
host
:
127.0.0.1
port
:
5672
username
:
admin
password
:
admin
#
rabbitmq:
#
host: 127.0.0.1
#
port: 5672
#
username: admin
#
password: admin
config
:
location
:
/data/config/support-config
# end-test-这里是配置信息基本值
...
...
liquidnet-bus-support/liquidnet-support-eureka/src/main/resources/application-dev.yml
0 → 100644
View file @
4a8ebf41
liquidnet
:
logfile
:
path
:
/data/logs
name
:
support-eureka
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
:
debug
server
:
port
:
7001
servlet
:
context-path
:
/eureka-server
spring
:
application
:
name
:
liquidnet-support-eureka
security
:
user
:
name
:
user
password
:
user123
eureka
:
instance
:
hostname
:
172.17.207.177
preferIpAddress
:
true
health-check-url
:
http://localhost:${server.port}${server.servlet.context-path}/actuator/health
status-page-url
:
http://localhost:${server.port}${server.servlet.context-path}/actuator/info
home-page-url
:
http://localhost:${server.port}${server.servlet.context-path}
metadata-map
:
configPath
:
${server.servlet.context-path}
management.context-path
:
${server.servlet.context-path}
server
:
enable-self-preservation
:
false
# 设为false,关闭自我保护 #自我保护设置 解决Eureka Server不踢出已关停的节点的问题,同时客户端也需要配置
eviction-interval-timer-in-ms
:
4000
# 清理间隔(单位毫秒,默认是60*1000)
client
:
register-with-eureka
:
false
#禁止自己当做服务注册
fetch-registry
:
false
#屏蔽注册信息
serviceUrl
:
defaultZone
:
http://${spring.security.user.name}:${spring.security.user.password}@${eureka.instance.hostname}:${server.port}${server.servlet.context-path}/eureka
# instance:
# prefer-ip-address: true
# instance-id: ${spring.application.name}:${server.port}
# hostname: localhost
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
:
${liquidnet.logfile.level}
liquidnet-bus-support/liquidnet-support-eureka/src/main/resources/application-prod.yml
0 → 100644
View file @
4a8ebf41
liquidnet
:
logfile
:
path
:
/data/logs
name
:
support-eureka
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
:
debug
server
:
port
:
7001
servlet
:
context-path
:
/eureka-server
spring
:
application
:
name
:
liquidnet-support-eureka
security
:
user
:
name
:
user
password
:
user123
eureka
:
instance
:
hostname
:
172.17.207.177
preferIpAddress
:
true
health-check-url
:
http://localhost:${server.port}${server.servlet.context-path}/actuator/health
status-page-url
:
http://localhost:${server.port}${server.servlet.context-path}/actuator/info
home-page-url
:
http://localhost:${server.port}${server.servlet.context-path}
metadata-map
:
configPath
:
${server.servlet.context-path}
management.context-path
:
${server.servlet.context-path}
server
:
enable-self-preservation
:
false
# 设为false,关闭自我保护 #自我保护设置 解决Eureka Server不踢出已关停的节点的问题,同时客户端也需要配置
eviction-interval-timer-in-ms
:
4000
# 清理间隔(单位毫秒,默认是60*1000)
client
:
register-with-eureka
:
false
#禁止自己当做服务注册
fetch-registry
:
false
#屏蔽注册信息
serviceUrl
:
defaultZone
:
http://${spring.security.user.name}:${spring.security.user.password}@${eureka.instance.hostname}:${server.port}${server.servlet.context-path}/eureka
# instance:
# prefer-ip-address: true
# instance-id: ${spring.application.name}:${server.port}
# hostname: localhost
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
:
${liquidnet.logfile.level}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment