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.
|
assert instance_port > 0 if should_register else True, "port is unvalid" |
@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.
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.
python-eureka-client/py_eureka_client/eureka_client.py
Line 380 in dd89189
@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.