1 Star 0 Fork 2.7K

R.Max/pig-config

forked from 李寻欢/pig-config 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
pig-gateway-dev.yml 1.50 KB
一键复制 编辑 原始数据 按行查看 历史
R.Max 提交于 2018-04-22 17:51 . 更新 pig-gateway-dev.yml
server:
port: 9999
spring:
rabbitmq:
host: 127.0.0.1
port: 5672
username: zhicheng
password: zhicheng
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
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/**
logging:
config: classpath:logback.xml
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/240335209/pig-config.git
git@gitee.com:240335209/pig-config.git
240335209
pig-config
pig-config
dev

搜索帮助