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:07:10 +09:00
commit ce348a71ac
No known key found for this signature in database
4 changed files with 123 additions and 8 deletions

View file

@ -1,5 +1,8 @@
{ pkgs, ... }:
let
streamPlayer = pkgs.writeTextDir "index.html" (builtins.readFile ./stream.html);
in
{
services.caddy = {
enable = true;
@ -92,8 +95,23 @@
reverse_proxy 127.0.0.1:4321
'';
virtualHosts."rtmps.mizuki.guru".extraConfig = ''
respond 204
virtualHosts."stream.mizuki.guru".extraConfig = ''
handle_path /hls/* {
root * /var/lib/nginx-rtmp/hls
header Cache-Control "no-store"
file_server
}
handle /live/* {
root * ${streamPlayer}
rewrite * /index.html
file_server
}
handle {
root * ${streamPlayer}
file_server
}
'';
virtualHosts."netbird.mizuki.guru".extraConfig = ''