|
|
|
server:
|
|
|
|
tomcat:
|
|
|
|
max-swallow-size: 100MB
|
|
|
|
port: @server.port@
|
|
|
|
servlet:
|
|
|
|
context-path: /api
|
|
|
|
spring:
|
|
|
|
main:
|
|
|
|
allow-bean-definition-overriding: true
|
|
|
|
application:
|
|
|
|
name: epmet-gateway-server
|
|
|
|
#环境 dev|test|prod
|
|
|
|
profiles:
|
|
|
|
active: dev
|
|
|
|
messages:
|
|
|
|
encoding: UTF-8
|
|
|
|
basename: i18n/messages_common
|
|
|
|
redis:
|
|
|
|
database: @spring.redis.index@
|
|
|
|
host: @spring.redis.host@
|
|
|
|
port: @spring.redis.port@
|
|
|
|
password: @spring.redis.password@
|
|
|
|
timeout: 30s
|
|
|
|
cloud:
|
|
|
|
gateway:
|
|
|
|
locator:
|
|
|
|
enabled: true
|
|
|
|
routes:
|
|
|
|
#认证服务
|
|
|
|
- id: epmet-auth-server
|
|
|
|
uri: @gateway.routes.epmet-auth-server.uri@
|
|
|
|
order: 1
|
|
|
|
predicates:
|
|
|
|
- Path=${server.servlet.context-path}/auth/**
|
|
|
|
filters:
|
|
|
|
- StripPrefix=1
|
|
|
|
- CpAuth=true
|
|
|
|
#Admin服务
|
|
|
|
- id: epmet-admin-server
|
|
|
|
uri: @gateway.routes.epmet-admin-server.uri@
|
|
|
|
order: 2
|
|
|
|
predicates:
|
|
|
|
- Path=${server.servlet.context-path}/sys/**
|
|
|
|
filters:
|
|
|
|
- StripPrefix=1
|
|
|
|
- CpAuth=true
|
|
|
|
#OSS服务
|
|
|
|
- id: epmet-oss-server
|
|
|
|
uri: @gateway.routes.epmet-oss-server.uri@
|
|
|
|
order: 4
|
|
|
|
predicates:
|
|
|
|
- Path=${server.servlet.context-path}/oss/**
|
|
|
|
filters:
|
|
|
|
- StripPrefix=1
|
|
|
|
- CpAuth=true
|
|
|
|
#消息服务
|
|
|
|
- id: epmet-message-server
|
|
|
|
uri: @gateway.routes.epmet-message-server.uri@
|
|
|
|
order: 5
|
|
|
|
predicates:
|
|
|
|
- Path=${server.servlet.context-path}/message/**
|
|
|
|
filters:
|
|
|
|
- StripPrefix=1
|
|
|
|
#工作流服务
|
|
|
|
- id: epmet-activiti-server
|
|
|
|
uri: @gateway.routes.epmet-activiti-server.uri@
|
|
|
|
order: 6
|
|
|
|
predicates:
|
|
|
|
- Path=${server.servlet.context-path}/activiti/**
|
|
|
|
filters:
|
|
|
|
- StripPrefix=1
|
|
|
|
#定时任务服务
|
|
|
|
- id: epmet-job-server
|
|
|
|
uri: @gateway.routes.epmet-job-server.uri@
|
|
|
|
order: 7
|
|
|
|
predicates:
|
|
|
|
- Path=${server.servlet.context-path}/job/**
|
|
|
|
filters:
|
|
|
|
- StripPrefix=1
|
|
|
|
#用户服务
|
|
|
|
- id: epmet-user-server
|
|
|
|
uri: @gateway.routes.epmet-user-server.uri@
|
|
|
|
order: 8
|
|
|
|
predicates:
|
|
|
|
- Path=${server.servlet.context-path}/epmetuser/**
|
|
|
|
filters:
|
|
|
|
- StripPrefix=1
|
|
|
|
- CpAuth=true
|
|
|
|
#demo流服务
|
|
|
|
- id: epmet-demo-server
|
|
|
|
uri: @gateway.routes.epmet-demo-server.uri@
|
|
|
|
order: 9
|
|
|
|
predicates:
|
|
|
|
- Path=${server.servlet.context-path}/demo/**
|
|
|
|
filters:
|
|
|
|
- StripPrefix=1
|
|
|
|
- CpAuth=true
|
|
|
|
#运营端客户定制化服务
|
|
|
|
- id: oper-customize-server
|
|
|
|
uri: @gateway.routes.oper-customize-server.uri@
|
|
|
|
order: 10
|
|
|
|
predicates:
|
|
|
|
- Path=${server.servlet.context-path}/oper/customize/**
|
|
|
|
filters:
|
|
|
|
- StripPrefix=1
|
|
|
|
- CpAuth=true
|
|
|
|
#运营端客户管理
|
|
|
|
- id: oper-crm-server
|
|
|
|
uri: @gateway.routes.oper-crm-server.uri@
|
|
|
|
order: 11
|
|
|
|
predicates:
|
|
|
|
- Path=${server.servlet.context-path}/oper/crm/**
|
|
|
|
filters:
|
|
|
|
- StripPrefix=1
|
|
|
|
- CpAuth=true
|
|
|
|
#居民端陌生人导览
|
|
|
|
- id: resi-guide-server
|
|
|
|
uri: @gateway.routes.resi-guide-server.uri@
|
|
|
|
order: 12
|
|
|
|
predicates:
|
|
|
|
- Path=${server.servlet.context-path}/resi/guide/**
|
|
|
|
filters:
|
|
|
|
- StripPrefix=1
|
|
|
|
- CpAuth=true
|
|
|
|
#政府端组织管理
|
|
|
|
- id: gov-org-server
|
|
|
|
uri: @gateway.routes.gov-org-server.uri@
|
|
|
|
order: 13
|
|
|
|
predicates:
|
|
|
|
- Path=${server.servlet.context-path}/gov/org/**
|
|
|
|
filters:
|
|
|
|
- StripPrefix=1
|
|
|
|
- CpAuth=true
|
|
|
|
#运营端访问权限控制
|
|
|
|
- id: oper-access-server
|
|
|
|
uri: @gateway.routes.oper-access-server.uri@
|
|
|
|
order: 14
|
|
|
|
predicates:
|
|
|
|
- Path=${server.servlet.context-path}/oper/access/**
|
|
|
|
filters:
|
|
|
|
- StripPrefix=1
|
|
|
|
- CpAuth=true
|
|
|
|
#居民端个人信息
|
|
|
|
- id: resi-mine-server
|
|
|
|
uri: @gateway.routes.resi-mine-server.uri@
|
|
|
|
order: 15
|
|
|
|
predicates:
|
|
|
|
- Path=${server.servlet.context-path}/resi/mine/**
|
|
|
|
filters:
|
|
|
|
- StripPrefix=1
|
|
|
|
- CpAuth=true
|
|
|
|
#居民端楼院校组
|
|
|
|
- id: resi-group-server
|
|
|
|
uri: @gateway.routes.resi-group-server.uri@
|
|
|
|
order: 16
|
|
|
|
predicates:
|
|
|
|
- Path=${server.servlet.context-path}/resi/group/**
|
|
|
|
filters:
|
|
|
|
- StripPrefix=1
|
|
|
|
- CpAuth=true
|
|
|
|
#党员热心居民
|
|
|
|
- id: resi-partymember-server
|
|
|
|
uri: @gateway.routes.resi-partymember-server.uri@
|
|
|
|
order: 17
|
|
|
|
predicates:
|
|
|
|
- Path=${server.servlet.context-path}/resi/partymember/**
|
|
|
|
filters:
|
|
|
|
- StripPrefix=1
|
|
|
|
- CpAuth=true
|
|
|
|
#政府端网格管理
|
|
|
|
- id: gov-grid-server
|
|
|
|
uri: @gateway.routes.gov-grid-server.uri@
|
|
|
|
order: 18
|
|
|
|
predicates:
|
|
|
|
- Path=${server.servlet.context-path}/gov/grid/**
|
|
|
|
filters:
|
|
|
|
- StripPrefix=1
|
|
|
|
- CpAuth=true
|
|
|
|
|
|
|
|
|
|
|
|
#政府端权限服务
|
|
|
|
- id: gov-access-server
|
|
|
|
uri: @gateway.routes.gov-access-server.uri@
|
|
|
|
order: 19
|
|
|
|
predicates:
|
|
|
|
- Path=${server.servlet.context-path}/gov/access/**
|
|
|
|
filters:
|
|
|
|
- StripPrefix=1
|
|
|
|
- CpAuth=true
|
|
|
|
|
|
|
|
#政府端-我的-服务
|
|
|
|
- id: gov-mine-server
|
|
|
|
uri: @gateway.routes.gov-mine-server.uri@
|
|
|
|
order: 20
|
|
|
|
predicates:
|
|
|
|
- Path=${server.servlet.context-path}/gov/mine/**
|
|
|
|
filters:
|
|
|
|
- StripPrefix=1
|
|
|
|
- CpAuth=true
|
|
|
|
#居民端党群e事
|
|
|
|
- id: resi-hall-server
|
|
|
|
uri: @gateway.routes.resi-hall-server.uri@
|
|
|
|
order: 21
|
|
|
|
predicates:
|
|
|
|
- Path=${server.servlet.context-path}/resi/hall/**
|
|
|
|
filters:
|
|
|
|
- StripPrefix=1
|
|
|
|
- CpAuth=true
|
|
|
|
#政府工作端议题管理
|
|
|
|
- id: gov-issue-server
|
|
|
|
uri: @gateway.routes.gov-issue-server.uri@
|
|
|
|
order: 22
|
|
|
|
predicates:
|
|
|
|
- Path=${server.servlet.context-path}/gov/issue/**
|
|
|
|
filters:
|
|
|
|
- StripPrefix=1
|
|
|
|
- CpAuth=true
|
|
|
|
#政府工作端项目管理
|
|
|
|
- id: gov-project-server
|
|
|
|
uri: @gateway.routes.gov-project-server.uri@
|
|
|
|
order: 23
|
|
|
|
predicates:
|
|
|
|
- Path=${server.servlet.context-path}/gov/project/**
|
|
|
|
filters:
|
|
|
|
- StripPrefix=1
|
|
|
|
- CpAuth=true
|
|
|
|
#政府工作端项目管理
|
|
|
|
- id: common-service-server
|
|
|
|
uri: @gateway.routes.common-service-server.uri@
|
|
|
|
order: 24
|
|
|
|
predicates:
|
|
|
|
- Path=${server.servlet.context-path}/commonservice/**
|
|
|
|
filters:
|
|
|
|
- StripPrefix=1
|
|
|
|
#党建园地
|
|
|
|
- id: resi-home-server
|
|
|
|
uri: @gateway.routes.resi-home-server.uri@
|
|
|
|
order: 25
|
|
|
|
predicates:
|
|
|
|
- Path=${server.servlet.context-path}/resi/home/**
|
|
|
|
filters:
|
|
|
|
- StripPrefix=1
|
|
|
|
- CpAuth=true
|
|
|
|
#政府端-党建声音
|
|
|
|
- id: gov-voice-server
|
|
|
|
uri: @gateway.routes.gov-voice-server.uri@
|
|
|
|
order: 26
|
|
|
|
predicates:
|
|
|
|
- Path=${server.servlet.context-path}/gov/voice/**
|
|
|
|
filters:
|
|
|
|
- StripPrefix=1
|
|
|
|
- CpAuth=true
|
|
|
|
#居民端-党建声音
|
|
|
|
- id: resi-voice-server
|
|
|
|
uri: @gateway.routes.resi-voice-server.uri@
|
|
|
|
order: 27
|
|
|
|
predicates:
|
|
|
|
- Path=${server.servlet.context-path}/resi/voice/**
|
|
|
|
filters:
|
|
|
|
- StripPrefix=1
|
|
|
|
- CpAuth=true
|
|
|
|
#政府端-数据首页
|
|
|
|
- id: data-report-server
|
|
|
|
uri: @gateway.routes.data-report-server.uri@
|
|
|
|
order: 28
|
|
|
|
predicates:
|
|
|
|
- Path=${server.servlet.context-path}/data/report/**
|
|
|
|
filters:
|
|
|
|
- StripPrefix=1
|
|
|
|
- CpAuth=true
|
|
|
|
#统计服务
|
|
|
|
- id: data-statistical-server
|
|
|
|
uri: @gateway.routes.data-statistical-server.uri@
|
|
|
|
order: 29
|
|
|
|
predicates:
|
|
|
|
- Path=${server.servlet.context-path}/data/stats/**
|
|
|
|
filters:
|
|
|
|
- StripPrefix=1
|
|
|
|
- CpAuth=true
|
|
|
|
#内容审核服务
|
|
|
|
- id: epmet-openapi-scan
|
|
|
|
uri: @gateway.routes.epmet-openapi-scan.uri@
|
|
|
|
order: 30
|
|
|
|
predicates:
|
|
|
|
- Path=${server.servlet.context-path}/epmetscan/**
|
|
|
|
filters:
|
|
|
|
- StripPrefix=1
|
|
|
|
- CpAuth=true
|
|
|
|
#微信第三方平台
|
|
|
|
- id: epmet-third-platform-server
|
|
|
|
uri: @gateway.routes.epmet-third-platform-server.uri@
|
|
|
|
order: 31
|
|
|
|
predicates:
|
|
|
|
- Path=${server.servlet.context-path}/epmet/third/platform/**
|
|
|
|
filters:
|
|
|
|
- StripPrefix=1
|
|
|
|
- CpAuth=true
|
|
|
|
nacos:
|
|
|
|
discovery:
|
|
|
|
server-addr: @nacos.server-addr@
|
|
|
|
#nacos的命名空间ID,默认是public
|
|
|
|
namespace: @nacos.discovery.namespace@
|
|
|
|
#不把自己注册到注册中心的地址
|
|
|
|
register-enabled: @nacos.register-enabled@
|
|
|
|
ip: @nacos.ip@
|
|
|
|
config:
|
|
|
|
enabled: @nacos.config-enabled@
|
|
|
|
server-addr: @nacos.server-addr@
|
|
|
|
namespace: @nacos.config.namespace@
|
|
|
|
group: @nacos.config.group@
|
|
|
|
file-extension: yaml
|
|
|
|
renren:
|
|
|
|
urls:
|
|
|
|
- /auth/captcha
|
|
|
|
- /auth/login
|
|
|
|
- /auth/login/*
|
|
|
|
- /*/swagger-resources/**
|
|
|
|
- /*/swagger-ui.html
|
|
|
|
- /*/webjars/**
|
|
|
|
- /*/v2/api-docs
|
|
|
|
- /*/swagger/api-docs
|
|
|
|
- /monitor/**
|
|
|
|
- /api/**
|
|
|
|
- /activiti/modeler.html
|
|
|
|
- /activiti/service/**
|
|
|
|
- /activiti/editor-app/**
|
|
|
|
- /oper/customize/**
|
|
|
|
- /oper/crm/**
|
|
|
|
- /epmetuser/**
|
|
|
|
- /gov/org/**
|
|
|
|
- /oper/access/**
|
|
|
|
- /sys/**
|
|
|
|
- /resi/guide/**
|
|
|
|
- /resi/mine/**
|
|
|
|
- /resi/group/**
|
|
|
|
- /resi/partymember/**
|
|
|
|
- /gov/grid/**
|
|
|
|
management:
|
|
|
|
endpoints:
|
|
|
|
web:
|
|
|
|
exposure:
|
|
|
|
include: "*"
|
|
|
|
endpoint:
|
|
|
|
health:
|
|
|
|
show-details: ALWAYS
|
|
|
|
|
|
|
|
mybatis-plus:
|
|
|
|
mapper-locations: classpath:/mapper/**/*.xml
|
|
|
|
#实体扫描,多个package用逗号或者分号分隔
|
|
|
|
typeAliasesPackage: com.epmet.entity
|
|
|
|
global-config:
|
|
|
|
#数据库相关配置
|
|
|
|
db-config:
|
|
|
|
#主键类型 AUTO:"数据库ID自增", INPUT:"用户输入ID", ID_WORKER:"全局唯一ID (数字类型唯一ID)", UUID:"全局唯一ID UUID";
|
|
|
|
id-type: ID_WORKER
|
|
|
|
#字段策略 IGNORED:"忽略判断",NOT_NULL:"非 NULL 判断"),NOT_EMPTY:"非空判断"
|
|
|
|
field-strategy: NOT_NULL
|
|
|
|
#驼峰下划线转换
|
|
|
|
column-underline: true
|
|
|
|
banner: false
|
|
|
|
#原生配置
|
|
|
|
configuration:
|
|
|
|
map-underscore-to-camel-case: true
|
|
|
|
cache-enabled: false
|
|
|
|
call-setters-on-nulls: true
|
|
|
|
jdbc-type-for-null: 'null'
|
|
|
|
|
|
|
|
feign:
|
|
|
|
hystrix:
|
|
|
|
enabled: true
|
|
|
|
client:
|
|
|
|
config:
|
|
|
|
default:
|
|
|
|
loggerLevel: BASIC
|
|
|
|
httpclient:
|
|
|
|
enabled: true
|
|
|
|
|
|
|
|
hystrix:
|
|
|
|
command:
|
|
|
|
default:
|
|
|
|
execution:
|
|
|
|
isolation:
|
|
|
|
thread:
|
|
|
|
timeoutInMilliseconds: 60000 #缺省为1000
|
|
|
|
|
|
|
|
ribbon:
|
|
|
|
ReadTimeout: 300000
|
|
|
|
ConnectTimeout: 300000
|
|
|
|
|
|
|
|
epmet:
|
|
|
|
# 党群e事通(不放行)
|
|
|
|
urls:
|
|
|
|
- /oper/customize/**
|
|
|
|
- /oper/crm/**
|
|
|
|
- /epmetuser/**
|
|
|
|
- /gov/org/**
|
|
|
|
- /oper/access/**
|
|
|
|
- /resi/guide/stranger/getgridhome
|
|
|
|
- /resi/guide/user/entergrid
|
|
|
|
- /auth/login/logout
|
|
|
|
- /auth/gov/loginwxmp/loginout
|
|
|
|
- /resi/mine/**
|
|
|
|
- /resi/group/**
|
|
|
|
- /resi/partymember/**
|
|
|
|
- /gov/grid/**
|
|
|
|
- /gov/mine/**
|
|
|
|
- /gov/access/**
|
|
|
|
- /resi/hall/**
|
|
|
|
- /gov/issue/**
|
|
|
|
- /gov/project/**
|
|
|
|
- /resi/home/**
|
|
|
|
- /epmet/third/platform/**
|
|
|
|
swaggerUrls:
|
|
|
|
|
|
|
|
jwt:
|
|
|
|
token:
|
|
|
|
#秘钥
|
|
|
|
secret: 7016867071f0ebf1c46f123eaaf4b9d6[elink.epmet]
|
|
|
|
#token有效时长,默认7天,单位秒
|
|
|
|
expire: 604800
|