Browse Source

gateway配置航道项目

pull/76/head
chenjiandong 1 year ago
parent
commit
ea4221db8e
3 changed files with 68 additions and 2 deletions
  1. +23
    -1
      src/main/resources/application-dev.yml
  2. +22
    -0
      src/main/resources/application-prod.yml
  3. +23
    -1
      src/main/resources/application-test.yml

+ 23
- 1
src/main/resources/application-dev.yml View File

@@ -165,6 +165,27 @@ spring:
- Path=/hhz/api/**
filters:
- StripPrefix=2
# waterway后台管理
- id: tuoheng-waterway-admin
uri: lb://tuoheng-waterway-admin
predicates:
- Path=/waterway/admin/**
filters:
- StripPrefix=2
# waterway小程序服务
- id: tuoheng-waterway-miniprogram
uri: lb://tuoheng-waterway-miniprogram
predicates:
- Path=/waterway/miniprogram/**
filters:
- StripPrefix=2
# waterway api服务
- id: tuoheng-waterway-api
uri: lb://tuoheng-waterway-api
predicates:
- Path=/waterway/web/**
filters:
- StripPrefix=2
# Redis数据源
redis:
# 缓存库默认索引0
@@ -194,4 +215,5 @@ security:
# 获取 apiUrl 可访问的 roleIdList
tuoheng:
hhz-admin-perUrl: http://192.168.11.11:9055/permission/getRoleIdList
freeway-admin-perUrl: http://192.168.11.11:9117/permission/getRoleIdList
freeway-admin-perUrl: http://192.168.11.11:9117/permission/getRoleIdList
waterway-admin-perUrl: http://192.168.11.11:9120/permission/getRoleIdList

+ 22
- 0
src/main/resources/application-prod.yml View File

@@ -157,6 +157,27 @@ spring:
- Path=/hhz/api/**
filters:
- StripPrefix=2
# waterway后台管理
- id: tuoheng-waterway-admin
uri: lb://tuoheng-waterway-admin
predicates:
- Path=/waterway/admin/**
filters:
- StripPrefix=2
# waterway小程序服务
- id: tuoheng-waterway-miniprogram
uri: lb://tuoheng-waterway-miniprogram
predicates:
- Path=/waterway/miniprogram/**
filters:
- StripPrefix=2
# waterway api服务
- id: tuoheng-waterway-api
uri: lb://tuoheng-waterway-api
predicates:
- Path=/waterway/web/**
filters:
- StripPrefix=2
# Redis数据源
redis:
# 缓存库默认索引0
@@ -187,3 +208,4 @@ security:
tuoheng:
hhz-admin-perUrl: https://hhz.t-aaron.com/permission/getRoleIdList
freeway-admin-perUrl: https://freeway.t-aaron.com/permission/getRoleIdList
waterway-admin-perUrl: https://waterway.t-aaron.com/permission/getRoleIdList

+ 23
- 1
src/main/resources/application-test.yml View File

@@ -158,6 +158,27 @@ spring:
- Path=/hhz/api/**
filters:
- StripPrefix=2
# waterway后台管理
- id: tuoheng-waterway-admin
uri: lb://tuoheng-waterway-admin
predicates:
- Path=/waterway/admin/**
filters:
- StripPrefix=2
# waterway小程序服务
- id: tuoheng-waterway-miniprogram
uri: lb://tuoheng-waterway-miniprogram
predicates:
- Path=/waterway/miniprogram/**
filters:
- StripPrefix=2
# waterway api服务
- id: tuoheng-waterway-api
uri: lb://tuoheng-waterway-api
predicates:
- Path=/waterway/web/**
filters:
- StripPrefix=2
# Redis数据源
redis:
# 缓存库默认索引0
@@ -187,4 +208,5 @@ security:
# 获取 apiUrl 可访问的 roleIdList
tuoheng:
hhz-admin-perUrl: http://172.15.1.21:9055/permission/getRoleIdList
freeway-admin-perUrl: https://freeway-test.t-aaron.com/permission/getRoleIdList
freeway-admin-perUrl: https://freeway-test.t-aaron.com/permission/getRoleIdList
waterway-admin-perUrl: https://waterway-test.t-aaron.com/permission/getRoleIdList

Loading…
Cancel
Save