keijack / python-eureka-client

A eureka client written in python. Support registering your python component to Eureka Server, as well as calling remote services by pulling the the Eureka registry.
MIT License
183 stars 43 forks source link

Ommit instance_port/instance_secure_port #77

Open cplappert opened 1 year ago

cplappert commented 1 year ago

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.