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

Health check failing for service(s) running behind proxy #45

Open
choxx opened this issue Jan 6, 2023 · 0 comments
Open

Health check failing for service(s) running behind proxy #45

choxx opened this issue Jan 6, 2023 · 0 comments

Comments

@choxx
Copy link
Collaborator

choxx commented Jan 6, 2023

Describe the bug
Health check failing for dependent service(s) example RabbitMq which are running behind the proxy on same (or different local/remote host); e.g. a swarm setup where RabbitMq is running as a separate independent service and not on localhost/same container.

Refer to line: https://github.com/Samagra-Development/yaus/blob/master/apps/api/src/app/app.controller.ts#L56 which is strictly checking for localhost.

To Reproduce
Steps to reproduce the behavior:
Try setting up RabbitMQ under a different swarm environment under same or different server & setup Yaus project & see if the /api/health endpoint is reporting the error.

Expected behavior
Health check API must not fail as the.

Screenshots
image

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