Erikson Murrugarra
Erikson Murrugarra

Reputation: 1529

Zuul Proxy HTTPS Forwarding Error

I am facing a problem when trying to use Zuul, As the client apps are registered in Eureka using HTTPS, when Zuul reads from Eureka registries it receive the url with no HTTPS and Zuul can't point to the right url (Https url).

Maybe some of you had faced this problem. Thank you for help.

UPDATED

Just to mention, I could solve the problem with the help of @RaphSoft, A team mate of the place where I work.

If someone is facing the same problem, He has posted the solution in his GitHub Repo, Here is the link. https://github.com/raphsoft/samples/tree/master/resource-server.

Upvotes: 0

Views: 2052

Answers (1)

Dave Syer
Dave Syer

Reputation: 58094

There's a section in the user guide on that: http://projects.spring.io/spring-cloud/spring-cloud.html#_registering_a_secure_application. It's not in older versions of the guide but the feature is the same in older versions of the software. Summary: you need to set two flags in the EurekaInstanceConfig, viz eureka.instance.[nonSecurePortEnabled,securePortEnabled] and also, if you want to use Eureka to discover the health and info URLs, you also need to specify those explicitly, i.e. eureka.instance.[healthCheckUrl,statusPageUrl].

You can also refer to the Netflix OSS wiki for more information on Eureka.

Upvotes: 1

Related Questions