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:42:27 +09:00
commit a8aafeab20
No known key found for this signature in database
3 changed files with 8 additions and 177 deletions

View file

@ -1,8 +1,5 @@
{ pkgs, ... }:
let
streamPlayer = pkgs.writeTextDir "index.html" (builtins.readFile ./stream.html);
in
{
services.caddy = {
enable = true;
@ -96,22 +93,7 @@ in
'';
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
}
reverse_proxy 127.0.0.1:10023
'';
virtualHosts."netbird.mizuki.guru".extraConfig = ''