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

Need to set custom Host header #28

Open
ndunks opened this issue Jul 8, 2022 · 0 comments
Open

Need to set custom Host header #28

ndunks opened this issue Jul 8, 2022 · 0 comments

Comments

@ndunks
Copy link

ndunks commented Jul 8, 2022

I ran consul from Kubernetes, the way its exposed is using Ingress and Host header is the key to match a service.

Any way to set Host: header on request other than consul ?

Tried using Options.hostname and Options.headers.Host but no luck.

I have resolved by adding annotations nginx.ingress.kubernetes.io/server-alias: consul,
but I think the Host header should not hardcoded and can be set in userspace.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant