I set it outside the http part → stream {…}
But I also set a port 9000 forwarding in the http section.
on my nginx loadbalancer
ss -ntlp | grep 5044
LISTEN 0 128 *:5044 :
time=“2020-01-30T13:58:35+01:00” level=error msg="[UpdateRegistration] Failed to report collector status to server: Put http://x.x.x.29:9000/api/sidecars/10a8exxxxxxxxxxxxxxx: dial tcp x.x.x.29:9000: connectex: No connection could be made because the target machine actively refused it.