# HG changeset patch # User Kim Alvefur # Date 1625860514 -7200 # Node ID 04fa947784bcd91986969377e9e6548ee63ecba4 # Parent a8798e04b5c82256e73a9ffffec001963d1a9349 mod_http_errors: Add a Prosody logo to root page diff -r a8798e04b5c8 -r 04fa947784bc plugins/mod_http_errors.lua --- a/plugins/mod_http_errors.lua Fri Jul 09 21:54:47 2021 +0200 +++ b/plugins/mod_http_errors.lua Fri Jul 09 21:55:14 2021 +0200 @@ -85,6 +85,15 @@ return render(html, event); end); +local icon = [[ + + + + + + +]]; + -- Something nicer shown instead of 404 at the root path, if nothing else handles this path module:hook_object_event(server, "http-error", function (event) local request, response = event.request, event.response; @@ -92,6 +101,7 @@ response.headers.content_type = "text/html; charset=utf-8"; local message = messages["/"]; return render(html, { + icon_raw = icon, title = "Prosody is running!"; message = message[math.random(#message)]; });