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

Return a 502 when container is down #564

Merged
merged 2 commits into from
Nov 8, 2023
Merged

Conversation

djmb
Copy link
Collaborator

@djmb djmb commented Nov 3, 2023

If the app container is down or not responding then traefik will return a 404 response code. This is not ideal as it suggests a client rather than a server problem.

To fix this, we'll define a catch all route that always returns a 502.

This is not ideal as this route would take priority over a shorter route with priorty 1.

If the app container is down or not responding then traefik will return
a 404 response code. This is not ideal as it suggests a client rather
than a server problem.

To fix this, we'll define a catch all route that always returns a 502.

This is not ideal as this route would take priority over a shorter route
with priorty 1.

TODO: up the priority of the app route.
@djmb djmb marked this pull request as ready for review November 8, 2023 14:27
@djmb djmb merged commit 97ba6b7 into main Nov 8, 2023
6 checks passed
@djmb djmb deleted the return-502-if-no-container branch November 8, 2023 14:58
@djmb djmb restored the return-502-if-no-container branch November 8, 2023 14:59
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

Successfully merging this pull request may close these issues.

1 participant