I have an AWS Elastic Load Balancer with the certificates for my domain and which terminates the SSL traffic. The ELB has a listener on the https port and forwards it as http to Zuul.
When I use Spring Boot HATEOAS, Zuul will replace the links with the correct address but with http instead of https:
"_links": {
"self": {
"href": "http://my.domain.com:80/rest/foo/bar"
}
}
but what I want is:
"_links": {
"self": {
"href": "https://my.domain.com/rest/foo/bar"
}
}
The request that generates this response is made over https
Because Zuul is behind the ELB I'm guessing it cannot know that it should receive traffic through https.
Is there a way to tell Zuul to replace links with https even though it receives un-encrypted traffic through http?
I guess an alternative is to deploy Zuul with https with a self-signed certificate but I'd rather ovoid this complication if I can.