python-eureka-client icon indicating copy to clipboard operation
python-eureka-client copied to clipboard

Ommit instance_port/instance_secure_port

Open cplappert opened this issue 2 years ago • 0 comments

I want to register an instance with just a hostname (no ip and port). However, setting the port is enforced (code below). So the server keeps displaying hostname+":port". And of course my instance is not reachable by this address.

https://github.com/keijack/python-eureka-client/blob/dd89189e4973966630c6bf12200e8dd774c1dfea/py_eureka_client/eureka_client.py#L380

@keijack or someone else: Is it possible to leave out the instance_port/instance_secure_port, so that only the host (without any port) will be reported to the eureka server? Example would be https://example.com/subdomain. Currently only https://example.com/subdomain:PORT works? I want the ":PORT" to be removed. Thank you.

cplappert avatar Apr 20 '23 06:04 cplappert