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 14:00:49 +09:00
commit 3aacec0c76
No known key found for this signature in database

View file

@ -1,12 +1,102 @@
{ ... }: { pkgs, ... }:
{ {
services.owncast = { environment.etc."xiu/config.toml".text = ''
enable = true; [rtmp]
dataDir = "/data/owncast"; enabled = true
port = 10023; port = 1935
listen = "0.0.0.0"; gop_num = 0
openFirewall = true;
rtmp-port = 1935; [rtmp.pull]
enabled = false
address = "127.0.0.1"
port = 1935
[[rtmp.push]]
enabled = false
address = "127.0.0.1"
port = 1936
[rtmp.auth]
pull_enabled = false
push_enabled = false
algorithm = "simple"
[rtsp]
enabled = false
port = 8554
relay_enabled = false
[rtsp.auth]
pull_enabled = false
push_enabled = false
algorithm = "simple"
[webrtc]
enabled = false
port = 8900
[webrtc.auth]
pull_enabled = false
push_enabled = false
algorithm = "simple"
[httpflv]
enabled = false
port = 8081
[httpflv.auth]
pull_enabled = false
algorithm = "simple"
[hls]
enabled = true
port = 10023
need_record = false
[hls.auth]
pull_enabled = false
algorithm = "simple"
[log]
level = "info"
[log.file]
enabled = false
rotate = "day"
path = "/var/log/xiu"
[authsecret]
key = ""
password = ""
[httpapi]
port = 8000
[httpnotify]
enabled = false
on_publish = ""
on_unpublish = ""
on_play = ""
on_stop = ""
'';
systemd.services.xiu = {
description = "XIU live media server";
wantedBy = [ "multi-user.target" ];
after = [ "network.target" ];
serviceConfig = {
ExecStart = "${pkgs.xiu}/bin/xiu --config /etc/xiu/config.toml";
DynamicUser = true;
StateDirectory = "xiu";
WorkingDirectory = "/var/lib/xiu";
Restart = "on-failure";
RestartSec = "5s";
};
}; };
networking.firewall.allowedTCPPorts = [
1935
10023
];
} }