Skip to content

Commit 4903010

Browse files
kixelatedclaude
andauthored
moq-relay: inline landing page HTML to fix Nix build (#1316)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent adf92c8 commit 4903010

File tree

4 files changed

+12
-70
lines changed

4 files changed

+12
-70
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rs/moq-relay/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ authors = ["Luke Curley"]
55
repository = "https://github.com/moq-dev/moq"
66
license = "MIT OR Apache-2.0"
77

8-
version = "0.10.21"
8+
version = "0.10.22"
99
edition = "2024"
1010
rust-version.workspace = true
1111

rs/moq-relay/src/landing.html

Lines changed: 0 additions & 67 deletions
This file was deleted.

rs/moq-relay/src/web.rs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,16 @@ async fn reload_certs(config: axum_server::tls_rustls::RustlsConfig, cert: PathB
167167
/// regular browser isn't something we can service. Rather than exposing an
168168
/// internal error (e.g. the "Request method must be `CONNECT`" rejection
169169
/// from axum's WebSocket extractor), we render a short informational page.
170-
pub(crate) const LANDING_PAGE: &str = include_str!("landing.html");
170+
pub(crate) const LANDING_PAGE: &str = "<!doctype html>
171+
<html lang=\"en\">
172+
<head><meta charset=\"utf-8\"><title>moq-relay</title></head>
173+
<body>
174+
<h1>moq-relay</h1>
175+
<p>This is a moq-relay instance, and you're not a MoQ client.</p>
176+
<p>See <a href=\"https://moq.dev\">https://moq.dev</a> for more info.</p>
177+
</body>
178+
</html>
179+
";
171180

172181
pub(crate) fn landing_response() -> Response {
173182
(StatusCode::NOT_FOUND, Html(LANDING_PAGE)).into_response()

0 commit comments

Comments
 (0)