forked from rongchao/epmet-cloud-rizhao
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.
196 lines
5.2 KiB
196 lines
5.2 KiB
6 years ago
|
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
|
||
|
#Admin服务
|
||
|
- id: epmet-admin-server
|
||
|
uri: @gateway.routes.epmet-admin-server.uri@
|
||
|
order: 2
|
||
|
predicates:
|
||
|
- Path=${server.servlet.context-path}/sys/**
|
||
|
filters:
|
||
|
- StripPrefix=1
|
||
|
#监控服务
|
||
|
- id: epmet-monitor-server
|
||
|
uri: @gateway.routes.epmet-monitor-server.uri@
|
||
|
order: 3
|
||
|
predicates:
|
||
|
- Path=${server.servlet.context-path}/monitor/**
|
||
|
filters:
|
||
|
- StripPrefix=1
|
||
|
#OSS服务
|
||
|
- id: epmet-oss-server
|
||
|
uri: @gateway.routes.epmet-oss-server.uri@
|
||
|
order: 4
|
||
|
predicates:
|
||
|
- Path=${server.servlet.context-path}/oss/**
|
||
|
filters:
|
||
|
- StripPrefix=1
|
||
|
#消息服务
|
||
|
- 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: 5
|
||
|
predicates:
|
||
|
- Path=${server.servlet.context-path}/activiti/**
|
||
|
filters:
|
||
|
- StripPrefix=1
|
||
|
#定时任务服务
|
||
|
- id: epmet-job-server
|
||
|
uri: @gateway.routes.epmet-job-server.uri@
|
||
|
order: 6
|
||
|
predicates:
|
||
|
- Path=${server.servlet.context-path}/job/**
|
||
|
filters:
|
||
|
- StripPrefix=1
|
||
|
#APP流服务
|
||
|
- id: epmet-api-server
|
||
|
uri: @gateway.routes.epmet-api-server.uri@
|
||
|
order: 7
|
||
|
predicates:
|
||
|
- Path=${server.servlet.context-path}/api/**
|
||
|
filters:
|
||
|
- StripPrefix=1
|
||
|
#demo流服务
|
||
|
- id: epmet-demo-server
|
||
|
uri: @gateway.routes.epmet-demo-server.uri@
|
||
|
order: 8
|
||
|
predicates:
|
||
|
- Path=${server.servlet.context-path}/demo/**
|
||
|
filters:
|
||
|
- StripPrefix=1
|
||
|
#运营端客户定制化服务
|
||
|
- id: oper-customize-server
|
||
|
uri: @gateway.routes.oper-customize-server.uri@
|
||
|
order: 9
|
||
|
predicates:
|
||
|
- Path=${server.servlet.context-path}/oper/customize/**
|
||
|
filters:
|
||
|
- StripPrefix=1
|
||
|
#运营端客户管理
|
||
|
- id: oper-crm-server
|
||
|
uri: @gateway.routes.oper-crm-server.uri@
|
||
|
order: 9
|
||
|
predicates:
|
||
|
- Path=${server.servlet.context-path}/oper/crm/**
|
||
|
filters:
|
||
|
- StripPrefix=1
|
||
|
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
|
||
|
- /*/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/**
|
||
|
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
|
||
|
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
|
||
|
max-connections: 200
|
||
|
max-connections-per-route: 50
|
||
|
|
||
|
hystrix:
|
||
|
command:
|
||
|
default:
|
||
|
execution:
|
||
|
isolation:
|
||
|
thread:
|
||
|
timeoutInMilliseconds: 60000 #缺省为1000
|
||
|
|
||
|
ribbon:
|
||
|
ReadTimeout: 300000
|
||
|
ConnectTimeout: 300000
|