Hi,
Yes, the cluster.hostname is host3.
I did more test just now. It may be related with the nginx. I created one simple web API named test1 to print ${request.url.protocol}://${request.url.host}:${request.url.port}${request.url.path} in the response. My request is https://host3:8443/test1 but the response is https://host3:443/test1.
The question is that Gateway is listening on 8443 port and can respond but why the ${request.url.port} is 443 ? I haven't found the solution.
I already simplified the nginx conf to forward request to one Gateway node(host1) already:
server {
listen 8443 ssl;
ssl_certificate gwhttpd.crt;
ssl_certificate_key gwhttpd.key;
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 10m;
ssl_prefer_server_ciphers on;
location / {
proxy_pass https://host1:8443;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}