Files
pqs/pqs-gateway/src/main/resources/bootstrap.yml

254 lines
6.7 KiB
YAML
Raw Normal View History

2022-06-21 20:47:46 +08:00
#当前服务的基本信息
microservice:
ename: @artifactId@
name: "@name@"
version: @version@
sentinel:
url: @sentinel.url@
gateway:
url: @gateway.url@
server:
port: 10215
spring:
application:
name: @artifactId@
main:
allow-bean-definition-overriding: true
#nacos注册中心以及配置中心的指定
cloud:
nacos:
discovery:
2022-07-13 15:44:05 +08:00
ip: @service.server.url@
2022-06-21 20:47:46 +08:00
server-addr: @nacos.url@
namespace: @nacos.namespace@
config:
server-addr: @nacos.url@
namespace: @nacos.namespace@
file-extension: yaml
shared-configs:
- data-id: share-config.yaml
refresh: true
- data-Id: share-config-datasource-db.yaml
refresh: true
gateway:
globalcors:
corsConfigurations:
'[/**]':
allowCredentials: true
exposedHeaders: "Content-Disposition,Content-Type,Cache-Control"
allowedHeaders: "*"
allowedOrigins: "*"
allowedMethods: "*"
discovery:
locator:
# 开启自动代理 (自动装载从配置中心serviceId)
enabled: true
# 服务id为true --> 这样小写服务就可访问了
lower-case-service-id: true
routes:
- id: pqs-auth
uri: lb://pqs-auth
predicates:
- Path=/pqs-auth/**
filters:
- SwaggerHeaderFilter
- StripPrefix=1
- id: user-boot
uri: lb://user-boot
predicates:
- Path=/user-boot/**
filters:
- SwaggerHeaderFilter
- StripPrefix=1
- id: device-boot
uri: lb://device-boot
predicates:
- Path=/device-boot/**
filters:
- SwaggerHeaderFilter
- StripPrefix=1
- id: system-boot
uri: lb://system-boot
predicates:
- Path=/system-boot/**
filters:
- SwaggerHeaderFilter
- StripPrefix=1
- id: harmonic-boot
uri: lb://harmonic-boot
predicates:
- Path=/harmonic-boot/**
filters:
- SwaggerHeaderFilter
- StripPrefix=1
- id: energy-boot
uri: lb://energy-boot
predicates:
- Path=/energy-boot/**
filters:
- SwaggerHeaderFilter
- StripPrefix=1
- id: event-boot
uri: lb://event-boot
predicates:
- Path=/event-boot/**
filters:
- SwaggerHeaderFilter
- StripPrefix=1
2022-06-22 09:14:52 +08:00
- id: quality-boot
uri: lb://quality-boot
predicates:
- Path=/quality-boot/**
filters:
- SwaggerHeaderFilter
- StripPrefix=1
2022-11-10 10:34:52 +08:00
- id: harmonic-prepare
2022-11-10 10:55:22 +08:00
uri: lb://harmonic-prepare
predicates:
- Path=/harmonic-prepare/**
filters:
- SwaggerHeaderFilter
- StripPrefix=1
2022-11-10 18:30:54 +08:00
- id: process-boot
uri: lb://process-boot
predicates:
- Path=/process-boot/**
filters:
- SwaggerHeaderFilter
- StripPrefix=1
2023-03-21 14:34:35 +08:00
- id: prepare-boot
uri: lb://prepare-boot
predicates:
- Path=/prepare-boot/**
filters:
- SwaggerHeaderFilter
- StripPrefix=1
2023-05-16 08:47:49 +08:00
- id: algorithm-boot
uri: lb://algorithm-boot
predicates:
- Path=/algorithm-boot/**
filters:
- SwaggerHeaderFilter
- StripPrefix=1
2023-05-22 20:56:26 +08:00
- id: access-boot
uri: lb://access-boot
predicates:
- Path=/access-boot/**
filters:
- SwaggerHeaderFilter
- StripPrefix=1
2023-05-29 19:35:36 +08:00
- id: cs-device-boot
uri: lb://cs-device-boot
predicates:
- Path=/cs-device-boot/**
filters:
- SwaggerHeaderFilter
- StripPrefix=1
- id: cs-system-boot
uri: lb://cs-system-boot
predicates:
- Path=/cs-system-boot/**
filters:
- SwaggerHeaderFilter
- StripPrefix=1
- id: cs-warn-boot
uri: lb://cs-warn-boot
predicates:
- Path=/cs-warn-boot/**
filters:
- SwaggerHeaderFilter
- StripPrefix=1
- id: cs-harmonic-boot
uri: lb://cs-harmonic-boot
predicates:
- Path=/cs-harmonic-boot/**
filters:
2023-07-06 11:33:59 +08:00
- SwaggerHeaderFilter
- StripPrefix=1
2023-07-26 11:20:12 +08:00
- id: advance-boot
uri: lb://advance-boot
2023-07-06 11:33:59 +08:00
predicates:
2023-07-26 11:20:12 +08:00
- Path=/advance-boot/**
2023-07-06 11:33:59 +08:00
filters:
2023-05-29 19:35:36 +08:00
- SwaggerHeaderFilter
- StripPrefix=1
2024-05-09 14:23:18 +08:00
- id: bpm-boot
uri: lb://bpm-boot
predicates:
- Path=/bpm-boot/**
filters:
- SwaggerHeaderFilter
- StripPrefix=1
- id: supervision-boot
uri: lb://supervision-boot
predicates:
- Path=/supervision-boot/**
filters:
- SwaggerHeaderFilter
- StripPrefix=1
2024-05-30 20:34:36 +08:00
#河北国网总部调用省侧接口,路径总部统一规定
- id: hb_pms_down
uri: lb://harmonic-boot
predicates:
- Path=/IndexAnalysis/**
2022-06-21 20:47:46 +08:00
#项目日志的配置
logging:
config: http://@nacos.url@/nacos/v1/cs/configs?tenant=@nacos.namespace@&group=DEFAULT_GROUP&dataId=logback.xml
level:
root: info
whitelist:
urls:
- /user-boot/user/generateSm2Key
- /user-boot/theme/getTheme
- /user-boot/user/updateFirstPassword
- /user-boot/appUser/authCode
- /user-boot/appUser/register
2023-08-22 10:04:29 +08:00
- /user-boot/appUser/resetPsd
2022-06-21 20:47:46 +08:00
- /pqs-auth/oauth/logout
- /pqs-auth/oauth/token
2023-08-15 19:12:18 +08:00
- /pqs-auth/oauth/autoLogin
2022-06-21 20:47:46 +08:00
- /pqs-auth/auth/getImgCode
- /pqs-auth/oauth/getPublicKey
- /pqs-auth/judgeToken/guangZhou
- /webjars/**
- /doc.html
- /swagger-resources/**
- /*/v2/api-docs
- /favicon.ico
2022-12-15 10:36:12 +08:00
- /system-boot/theme/getTheme
2023-08-30 15:55:45 +08:00
- /system-boot/image/toStream
2023-08-09 16:03:03 +08:00
- /cs-system-boot/appinfo/queryAppInfoByType
2023-09-26 09:28:09 +08:00
- /system-boot/dictType/dictDataCache
2024-04-19 14:33:14 +08:00
- /system-boot/file/**
- /system-boot/area/**
- /advance-boot/**
2024-05-14 15:20:47 +08:00
- /device-boot/**
2023-02-17 09:05:22 +08:00
#- /system-boot/**
#- /harmonic-boot/**
#- /energy-boot/**
#- /event-boot/**
#- /quality-boot/**
#- /harmonic-prepare/**
2024-05-09 14:23:18 +08:00
- /process-boot/**
- /bpm-boot/**
- /system-boot/**
- /supervision-boot/**
2024-05-09 14:23:18 +08:00
- /user-boot/**
2024-05-16 09:33:23 +08:00
- /harmonic-boot/**
2024-05-09 14:23:18 +08:00
- /user-boot/user/listAllUserByDeptId
2024-05-30 20:34:36 +08:00
- /IndexAnalysis/**
2022-07-13 15:44:05 +08:00
mqtt:
2022-07-13 20:16:32 +08:00
client-id: @artifactId@${random.value}
2022-06-21 20:47:46 +08:00