wow
Some checks failed
CI / check (push) Has been cancelled
CI / ida (push) Has been cancelled
CI / cpt (push) Has been cancelled
CI / build-nixos (ena) (push) Has been cancelled
CI / build-nixos (hako) (push) Has been cancelled
CI / build-nixos (kazusa) (push) Has been cancelled
CI / build-nixos (mizuki) (push) Has been cancelled

This commit is contained in:
암냥 2026-07-04 13:29:57 +09:00
commit d8e946b828
No known key found for this signature in database
2 changed files with 6 additions and 2 deletions

View file

@ -54,7 +54,7 @@
const source = `/hls/${encodeURIComponent(streamName)}.m3u8`; const source = `/hls/${encodeURIComponent(streamName)}.m3u8`;
document.title = `${streamName} - stream.mizuki.guru`; document.title = `${streamName} - stream.mizuki.guru`;
publish.innerHTML = `Publish: <code>rtmps://stream.mizuki.guru/live/${escapeHtml(streamName)}</code>`; publish.innerHTML = `OBS Server: <code>rtmps://stream.mizuki.guru:1935/live</code><br />OBS Stream Key: <code>${escapeHtml(streamName)}</code>`;
if (video.canPlayType("application/vnd.apple.mpegurl")) { if (video.canPlayType("application/vnd.apple.mpegurl")) {
video.src = source; video.src = source;
@ -64,7 +64,7 @@
hls.attachMedia(video); hls.attachMedia(video);
} else { } else {
video.outerHTML = video.outerHTML =
"<p></p> 브라우저는 HLS 재생을 지원하지 않습니다.</p>"; "<p>이 브라우저는 HLS 재생을 지원하지 않습니다.</p>";
} }
function escapeHtml(value) { function escapeHtml(value) {

View file

@ -38,6 +38,10 @@ in
"d ${hlsDir} 0755 nginx nginx - -" "d ${hlsDir} 0755 nginx nginx - -"
]; ];
systemd.services.nginx.serviceConfig.ReadWritePaths = [
"/var/lib/nginx-rtmp"
];
systemd.services.stream-stunnel = { systemd.services.stream-stunnel = {
description = "RTMPS TLS terminator for stream.mizuki.guru"; description = "RTMPS TLS terminator for stream.mizuki.guru";
after = [ after = [