Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-opsdoc
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit d9cf020d
authored
Apr 17, 2022
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
增加配置
1 parent
181ae2d0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
1.6.0_四月/1.6.0配置中心配置.md
1.6.0_四月/1.6.0配置中心配置.md
View file @
d9cf020
...
...
@@ -183,7 +183,12 @@ spring.cloud.gateway.routes[8].filters[1]=DedupeResponseHeader=Access-Control-Al
### 2、测试配置
```
properties
#alarmcenter-new
spring.cloud.gateway.routes[8]
.id
=
alarmcenter_new_route
spring.cloud.gateway.routes[8]
.uri
=
lb://ne-shield-alarmcenter-new
spring.cloud.gateway.routes[8].predicates[0]=
Path
=
/alarmcenternew/**
spring.cloud.gateway.routes[8].filters[0]=
StripPrefix
=
0
spring.cloud.gateway.routes[8].filters[1]=
DedupeResponseHeader
=
Access-Control-Allow-Origin Access-Control-Allow-Credentials, RETAIN_FIRST
```
...
...
@@ -191,7 +196,12 @@ spring.cloud.gateway.routes[8].filters[1]=DedupeResponseHeader=Access-Control-Al
### 3、生产配置
```
properties
#alarmcenter-new
spring.cloud.gateway.routes[8]
.id
=
alarmcenter_new_route
spring.cloud.gateway.routes[8]
.uri
=
lb://ne-shield-alarmcenter-new
spring.cloud.gateway.routes[8].predicates[0]=
Path
=
/alarmcenternew/**
spring.cloud.gateway.routes[8].filters[0]=
StripPrefix
=
0
spring.cloud.gateway.routes[8].filters[1]=
DedupeResponseHeader
=
Access-Control-Allow-Origin Access-Control-Allow-Credentials, RETAIN_FIRST
```
...
...
@@ -214,6 +224,8 @@ mq.kafka.device.battery.topic=topic_device_battery
### 2、测试配置
```
properties
#警情报警Topic
mq.kafka.fence.alarm.topic
=
gps_fence_alarm_neshield
#设备行程
mq.kafka.device.journey.topic
=
neshield_journey
#设备电量
...
...
@@ -225,6 +237,8 @@ mq.kafka.device.battery.topic=topic_device_battery
### 3、生产配置
```
properties
#警情报警Topic
mq.kafka.fence.alarm.topic
=
gps_fence_alarm_neshield
#设备行程
mq.kafka.device.journey.topic
=
neshield_journey
#设备电量
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment