stream: add a synthwave favicon

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
nemunaire 2026-07-03 14:07:46 +08:00
commit 6cf32e00e4
4 changed files with 63 additions and 0 deletions

View file

@ -202,6 +202,7 @@ output.harbor(
# --- Page web et API de lecture (mêmes port/harbor que le flux) ---
home_html = file.contents("/etc/liquidsoap/index.html")
favicon_svg = file.contents("/etc/liquidsoap/favicon.svg")
harbor.http.register(
port=8000, method="GET", "/",
@ -211,6 +212,14 @@ harbor.http.register(
end
)
harbor.http.register(
port=8000, method="GET", "/favicon.svg",
fun(_, resp) -> begin
resp.content_type("image/svg+xml; charset=utf-8")
resp.data(favicon_svg)
end
)
harbor.http.register(
port=8000, method="GET", "/nowplaying",
fun(_, resp) -> begin