锦水项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

280 lines
8.2 KiB

server:
tomcat:
max-swallow-size: 100MB
port: @server.port@
servlet:
context-path: /epdc-api
spring:
application:
name: epdc-gateway-server
#环境 dev|test|prod
profiles:
active: @spring.profiles.active@
servlet:
multipart:
enabled: true
file-size-threshold: 0
max-file-size: 100MB
max-request-size: 100MB
redis:
database: @spring.redis.index@
host: @spring.redis.host@
timeout: 30s
port: @spring.redis.port@
password: @spring.redis.password@
cloud:
gateway:
locator:
enabled: true
routes:
#认证服务
- id: epdc-auth-server
uri: @gateway.routes.epdc-auth-server.uri@
order: 1
predicates:
- Path=${server.servlet.context-path}/auth/**
filters:
- StripPrefix=1
#Admin服务
- id: epdc-admin-server
uri: @gateway.routes.epdc-admin-server.uri@
order: 2
predicates:
- Path=${server.servlet.context-path}/sys/**
filters:
- StripPrefix=1
#OSS服务
- id: epdc-oss-server
uri: @gateway.routes.epdc-oss-server.uri@
order: 3
predicates:
- Path=${server.servlet.context-path}/oss/**
filters:
- StripPrefix=1
#消息服务
- id: epdc-message-server
uri: @gateway.routes.epdc-message-server.uri@
order: 4
predicates:
- Path=${server.servlet.context-path}/message/**
filters:
- StripPrefix=1
#工作流服务
- id: epdc-activiti-server
uri: @gateway.routes.epdc-activiti-server.uri@
order: 5
predicates:
- Path=${server.servlet.context-path}/activiti/**
filters:
- StripPrefix=1
#定时任务服务
- id: epdc-job-server
uri: @gateway.routes.epdc-job-server.uri@
order: 6
predicates:
- Path=${server.servlet.context-path}/job/**
filters:
- StripPrefix=1
#APP流服务
- id: epdc-api-server
uri: @gateway.routes.epdc-api-server.uri@
order: 7
predicates:
- Path=${server.servlet.context-path}/api/**
filters:
- StripPrefix=1
- CpAuth=true
#爱心互助模块
- id: epdc-heart-server
uri: @gateway.routes.epdc-heart-server.uri@
order: 8
predicates:
- Path=${server.servlet.context-path}/heart/**
filters:
- StripPrefix=1
#友邻社群模块
- id: epdc-group-server
uri: @gateway.routes.epdc-group-server.uri@
order: 9
predicates:
- Path=${server.servlet.context-path}/group/**
filters:
- StripPrefix=1
#新闻公告模块
- id: epdc-news-server
uri: @gateway.routes.epdc-news-server.uri@
order: 10
predicates:
- Path=${server.servlet.context-path}/news/**
filters:
- StripPrefix=1
#党群议事模块
- id: epdc-events-server
uri: @gateway.routes.epdc-events-server.uri@
order: 11
predicates:
- Path=${server.servlet.context-path}/events/**
filters:
- StripPrefix=1
#生活服务模块
- id: epdc-services-server
uri: @gateway.routes.epdc-services-server.uri@
order: 12
predicates:
- Path=${server.servlet.context-path}/services/**
filters:
- StripPrefix=1
#APP用户模块
- id: epdc-user-server
uri: @gateway.routes.epdc-user-server.uri@
order: 13
predicates:
- Path=${server.servlet.context-path}/app-user/**
filters:
- StripPrefix=1
#DEMO服务
- id: epdc-demo-server
uri: @gateway.routes.epdc-demo-server.uri@
order: 14
predicates:
- Path=${server.servlet.context-path}/demo/**
filters:
- StripPrefix=1
#websocket服务
- id: epdc-websocket-server
uri: @gateway.routes.epdc-websocket-server.uri@
order: 15
predicates:
- Path=${server.servlet.context-path}/ws/**
filters:
- StripPrefix=1
#绩效考核模块
- id: epdc-kpi-server
uri: @gateway.routes.epdc-kpi-server.uri@
order: 16
predicates:
- Path=${server.servlet.context-path}/kpi/**
filters:
- StripPrefix=1
#定制模块
- id: epdc-custom-server
uri: @gateway.routes.epdc-custom-server.uri@
order: 17
predicates:
- Path=${server.servlet.context-path}/custom/**
filters:
- StripPrefix=1
#积分模块
- id: epdc-points-server
uri: @gateway.routes.epdc-points-server.uri@
order: 18
predicates:
- Path=${server.servlet.context-path}/points/**
filters:
- StripPrefix=1
- id: epdc-cloud-analysis-server
uri: @gateway.routes.epdc-cloud-analysis-server.uri@
order: 19
predicates:
- Path=${server.servlet.context-path}/cloudAnalysis/**
filters:
- StripPrefix=1
#党群模块
- id: epdc-party-group-server
uri: @gateway.routes.epdc-party-group-server.uri@
order: 20
predicates:
- Path=${server.servlet.context-path}/partyGroup/**
filters:
- StripPrefix=1
nacos:
discovery:
server-addr: @nacos.server-addr@
register-enabled: @nacos.register-enabled@
ip: @nacos.ip@
namespace: @nacos.namespace@
zipkin:
# 指定了 zipkin 服务器的地址
base-url: @spring.zipkin.base-url@
sleuth:
sampler:
# 将采样比例设置为 1.0,也就是全部都需要。默认是 0.1
probability: 1.0
management:
endpoints:
web:
exposure:
include: "*"
endpoint:
health:
show-details: ALWAYS
feign:
hystrix:
enabled: true
hystrix:
command:
default:
execution:
isolation:
thread:
timeoutInMilliseconds: 60000 #缺省为1000
ribbon:
ReadTimeout: 300000
ConnectTimeout: 300000
renren:
urls:
- /auth/captcha
- /auth/login
- /*/swagger-resources/**
- /*/swagger-ui.html
- /*/webjars/**
- /*/v2/api-docs
- /*/swagger/api-docs
- /monitor/**
- /api/**
- /activiti/modeler.html
- /activiti/service/**
- /activiti/editor-app/**
- /message/sms/sendCode #发送验证码
- /heart/**
- /oss/file/download
- /ws/**
workLoginUrls:
- /api/work/user/getToken #工作端-获取token
- /api/work/user/login #工作端-登录
- /api/analysis/user/getToken #数据分析端-获取token
- /api/analysis/user/login #数据分析端-登录
- /api/analysis/user/scripLogin #工作端-用户凭证登录
- /api/work/user/scripLogin #工作端-用户凭证登录
- /api/work/*/swagger/**
workUrls:
- /api/work/** #工作端接口
- /api/analysis/** #数据端接口
- /cloudAnalysis/** #数据端接口
epdc:
# 党建e家接口
urls:
- /api/**
# 不处理token,直接通过
swaggerUrls:
- /api/wx/getWxConfig # 获取微信公众号配置
- /api/admin/dept/completeName # 获取完整部门名称
- /api/message/sms/sendCode # 发送短信验证码
- /api/message/sms/registerResult # 发送用户注册审核结果
- /api/events/issue/upload # 上传图片
- /api/app-user/user/mp/regist # 公众号用户注册
- /api/app-user/user/ma/getToken # 小程序用户 登录
- /api/app-user/user/ma/regist # 小程序用户 注册
- /api/app-user/user/ma/gridLeaderRegister # 小程序用户 网格长注册
- /api/app-user/user/ma/v2/getToken # 小程序用户 注册或登录(版本v2)
- /api/work/** #工作端接口不拦截
- /api/analysis/** #数据端接口不拦截
- /cloudAnalysis/** #数据端接口