1 Star 0 Fork 0

码龙/config

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
zuul-gateway-service.yml 1.38 KB
一键复制 编辑 原始数据 按行查看 历史
spring:
application:
name: zuul-gateway-service
server:
port: 8012
eureka:
instance:
#使用ip
# perferIpAddress: true
instance-id: ${spring.cloud.client.ipAddress}:${spring.application.name}:${server.port}
client:
#从eureka服务器注册表中获取注册信息的时间间隔(s),默认为30秒
registryFetchIntervalSeconds: 5
healthcheck:
enabled: true
serviceUrl:
defaultZone: http://admin:admin@localhost:8761/eureka-server/eureka/
zuul:
#来忽略所有的默认路由
ignoredServices: '*'
host:
connect-timeout-millis: 60000
socket-timeout-millis: 60000
routes:
api-service:
path: /api-oauth2/**
sensitiveHeaders:
serviceId: oauth2-service
api-core:
path: /api-core/**
sensitiveHeaders:
serviceId: iap-core
portal:
path: /api-portal/**
sensitiveHeaders:
serviceId: portal
add-proxy-headers: true
security:
oauth2:
client:
access-token-uri: http://localhost:8100/oauth2-service/oauth/token
user-authorization-uri: http://localhost:8100/oauth2-service/oauth/authorize
client-id: webapp
resource:
user-info-uri: http://localhost:8100/oauth2-service/user
prefer-token-info: false
hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds: 70000
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/luzhuhong/config.git
git@gitee.com:luzhuhong/config.git
luzhuhong
config
config
master

搜索帮助