diff --git a/src/index.mjs b/src/index.mjs
index 8acd917..6f9141b 100644
--- a/src/index.mjs
+++ b/src/index.mjs
@@ -266,6 +266,11 @@ function buildGatePage(req) {
'Bad Gateway',
'Bad Gateway'
);
+ // Patch the
to include the domain — matches real Cloudflare behaviour
+ html = html.replace(
+ '502: Bad Gateway',
+ `${cfg.main.url.domain} | 502: Bad gateway`
+ );
html = html.replace('