1 Star 0 Fork 2.9K

bardian / pig-config

forked from 李寻欢 / pig-config 
加入 Gitee
与超过 600 万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未指定开源许可证,未经作者的许可,此代码仅用于学习,不能用于其他用途。
克隆/下载
pig-gateway-dev.yml 1.17 KB
一键复制 编辑 Web IDE 原始数据 按行查看 历史
lengleng 提交于 2018-05-22 21:34 . :hammer: v1.0.0
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,pig-demo-service
ignoredServices: '*'
host:
connect-timeout-millis: 10000
socket-timeout-millis: 10000
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: true
preview: false
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令牌所需要密钥的地址
ignore:
urls:
- /mobile/**
- /auth/**
- /admin/code/*
- /admin/smsCode/*
- /admin/user/info
- /admin/userMenu
- /swagger-resources/**
- /swagger-ui.html
- /*/v2/api-docs
- /swagger/api-docs
- /webjars/**
clients:
- app

评论 ( 0 )

你可以在登录后,发表评论

1
https://gitee.com/zhurui536/pig-config.git
git@gitee.com:zhurui536/pig-config.git
zhurui536
pig-config
pig-config
dev

搜索帮助