This fixes only the few seconds while Discourse is booting. Serving a nicer error page while Discourse is rebuilding already requires an outer nginx, which can also handle the error message while Discourse is booting (as I just found out).
I’m building a howto for this soon-ish – hang tight ![]()