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
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:
parent
88cb745937
commit
ce348a71ac
4 changed files with 123 additions and 8 deletions
|
|
@ -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 = ''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue