Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ommit instance_port/instance_secure_port #77

Open
cplappert opened this issue Apr 20, 2023 · 0 comments
Open

Ommit instance_port/instance_secure_port #77

cplappert opened this issue Apr 20, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@cplappert
Copy link

cplappert commented Apr 20, 2023

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.

@keijack keijack self-assigned this Apr 26, 2023
@keijack keijack added the enhancement New feature or request label Apr 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants