浏览代码

更新电信城管小程序配置相关

pull/109/head
xiaoying 1年前
父节点
当前提交
f3d85be316
共有 5 个文件被更改,包括 23 次插入1 次删除
  1. +1
    -0
      src/main/java/com/tuoheng/gateway/config/WebSecurityConfig.java
  2. +1
    -1
      src/main/java/com/tuoheng/gateway/constants/AuthorityConstant.java
  3. +7
    -0
      src/main/resources/application-dev.yml
  4. +7
    -0
      src/main/resources/application-prod.yml
  5. +7
    -0
      src/main/resources/application-test.yml

+ 1
- 0
src/main/java/com/tuoheng/gateway/config/WebSecurityConfig.java 查看文件

@@ -84,6 +84,7 @@ public class WebSecurityConfig {
.pathMatchers("/oidc/admin/tenant/**", "/oidc/admin/client/**").hasAnyAuthority(AuthorityConstant.SCOPE_ADMIN, AuthorityConstant.SCOPE_TUOHNEG_OIDC_ADMIN)
.pathMatchers("/waterway/admin/**").hasAnyAuthority(AuthorityConstant.SCOPE_ADMIN, AuthorityConstant.SCOPE_TUOHNEG_WATERWAY_ADMIN)
.pathMatchers("/waterway/miniprogram/**").hasAnyAuthority(AuthorityConstant.SCOPE_ADMIN, AuthorityConstant.SCOPE_TUOHNEG_WATERWAY_MP)
.pathMatchers("/telecomumale/miniprogram/**").hasAnyAuthority(AuthorityConstant.SCOPE_ADMIN, AuthorityConstant.SCOPE_TUOHNEG_TELECOMUMALE_MP)
.pathMatchers("/telecomumale/admin/**").hasAnyAuthority(AuthorityConstant.SCOPE_ADMIN, AuthorityConstant.SCOPE_TUOHNEG_TELECOMUMALE_ADMIN)
.pathMatchers("/weptsp/admin/**").hasAnyAuthority(AuthorityConstant.SCOPE_ADMIN, AuthorityConstant.SCOPE_TUOHNEG_WEPTSP_ADMIN)
.pathMatchers("/airmonitor/admin/**").hasAnyAuthority(AuthorityConstant.SCOPE_ADMIN, AuthorityConstant.SCOPE_TUOHNEG_AIRMONITOR_ADMIN)

+ 1
- 1
src/main/java/com/tuoheng/gateway/constants/AuthorityConstant.java 查看文件

@@ -63,5 +63,5 @@ public class AuthorityConstant {
* Telecomumale 用户权限
*/
public static final String SCOPE_TUOHNEG_TELECOMUMALE_ADMIN = "SCOPE_tuoheng-telecomumale-admin";
//public static final String SCOPE_TUOHNEG_AIRPORT_MP= "SCOPE_tuoheng-weptsp-mp";
public static final String SCOPE_TUOHNEG_TELECOMUMALE_MP= "SCOPE_tuoheng-telecomumale-mp";
}

+ 7
- 0
src/main/resources/application-dev.yml 查看文件

@@ -238,6 +238,13 @@ spring:
- Path=/telecomumale/admin/**
filters:
- StripPrefix=2
# 电信城管mp服务
- id: tuoheng-telecomumale-miniprogram
uri: lb://tuoheng-telecomumale-miniprogram
predicates:
- Path=/telecomumale/miniprogram/**
filters:
- StripPrefix=2
# Redis数据源
redis:
# 缓存库默认索引0

+ 7
- 0
src/main/resources/application-prod.yml 查看文件

@@ -216,6 +216,13 @@ spring:
- Path=/telecomumale/admin/**
filters:
- StripPrefix=2
# 电信城管mp服务
- id: tuoheng-telecomumale-miniprogram
uri: lb://tuoheng-telecomumale-miniprogram
predicates:
- Path=/telecomumale/miniprogram/**
filters:
- StripPrefix=2
# Redis数据源
redis:
# 缓存库默认索引0

+ 7
- 0
src/main/resources/application-test.yml 查看文件

@@ -231,6 +231,13 @@ spring:
- Path=/telecomumale/admin/**
filters:
- StripPrefix=2
# 电信城管mp服务
- id: tuoheng-telecomumale-miniprogram
uri: lb://tuoheng-telecomumale-miniprogram
predicates:
- Path=/telecomumale/miniprogram/**
filters:
- StripPrefix=2
# Redis数据源
redis:
# 缓存库默认索引0

正在加载...
取消
保存