Spring cloud: Ribbon and HTTPS

后端 未结 2 720
轮回少年
轮回少年 2021-02-02 01:16

We want to use HTTPS for our microservices communication based on Feign and Ribbon. The services are based on spring boot and tomcat is correctly setup. The instances are regist

相关标签:
2条回答
  • 2021-02-02 01:48

    I have the same problem trying to configure Zuul proxy to use Ribbon to connect to micro services running on https: RibbonRoutingFilter is looking at requestURI and create RestClient when run method is executed. I configured Eureka to run on http though. It is the underlying https microservice registered on Eureka cannot be accessed by Ribbon.

    http works perfectly with simple zuul routes set up.

    0 讨论(0)
  • 2021-02-02 01:52

    We solved the zuul proxy problem now by setting

    ribbon.IsSecure=true
    eureka.instance.secureVirtualHostName=${spring.application.name}
    

    so that all services are also in the secure virtual hosts pool in com.netflix.discovery.shared.Applications. That helps the discovery process to find the instances in eureka.

    However, the Hystrix dashboard has still a similar problem

    0 讨论(0)
提交回复
热议问题