Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
pig-gateway-dev.yml 1.38 KB
Copy Edit Raw Blame History
zhangfq authored 2018-05-25 21:55 . qaz
server:
port: 9999
spring:
zipkin:
rabbitmq:
queue: zipkin
sleuth:
sampler:
percentage: 0.2
zuul:
ribbon:
eager-load:
enabled: true
clients: pig-auth,pig-upms-service
ignoredServices: '*'
host:
connect-timeout-millis: 30000
socket-timeout-millis: 30000
routes:
pig-auth:
path: /auth/**
serviceId: pig-auth
stripPrefix: true
sensitiveHeaders:
pig-upms-service:
path: /admin/**
serviceId: pig-upms-service
stripPrefix: true
sensitiveHeaders:
ratelimit:
key-prefix: pig-ratelimite
enabled: true
repository: REDIS
behind-proxy: true
policies:
pig-upms-service:
limit: 100
quota: 100
refresh-interval: 3
security:
validate:
code: false
preview: true
sessions: stateless
oauth2:
client:
client-id: pig
client-secret: pig
resource:
loadBalanced: true
token-info-uri: ${security.auth.server}/oauth/check-token
service-id: pig-gateway
jwt:
key-uri: ${security.auth.server}/oauth/token_key #解析jwt令牌所需要密钥的地址
urls:
anon:
- /mobile/**
- /auth/**
- /admin/code/*
- /admin/smsCode/*
- /admin/user/info
- /admin/menu/userTree
- /swagger-resources/**
- /swagger-ui.html
- /*/v2/api-docs
- /swagger/api-docs
- /webjars/**
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化