Repository navigation
Conversation
When an upstream container is stopped or still starting, Apache returned its default 503 page. Serve an inline page with the site colours instead for 502/503/504. Upstream application errors are not overridden.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The production hostnames (web, PathoCore API, Keycloak) currently answer with Apache's default
503 Service Unavailablepage behind Cloudflare: Apache is up but cannot reach the application containers.This adds, inside the application-owned
additional-apache-routesblock (server context, so it applies to every VirtualHost),ErrorDocument 502/503/504with an inline HTML page: "Building · In progress", MePRAM DataHub title, Spanish and English text, and the site colours (#4f46e5,#282461, theglobals.cssbackground and font stacks). No external requests, no new files or mounts.ProxyErrorOverride, so application errors (including API JSON errors) still reach clients.$or%, so the installer variable rendering leaves it untouched.Tests
httpd -tand a request through a throwawayubi9/httpd-24container proxying to a closed port:503with the new page.scaffold.py check(standard b4b2950, as ondev): 0 issues; the change is inside the application block.Changelog note: added under the current top section; it will move to
v1.2.0devwhen rebased after #39.