NixOS-Config/nixos/server/icecast.nix

23 lines
528 B
Nix
Raw Normal View History

{outputs, ...}: {
2024-08-26 20:45:07 -04:00
# Icecast, replacing Azuracast maybe
services = {
icecast = {
enable = true;
listen.port = 265;
hostname = "icecast.${outputs.secrets.jimDomain}";
2024-08-26 20:45:07 -04:00
admin = {
user = "jimbo";
password = "${outputs.secrets.castPass}";
2024-08-26 20:45:07 -04:00
};
};
nginx.virtualHosts."icecast.${outputs.secrets.jimDomain}" = {
2024-08-26 20:45:07 -04:00
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://127.0.0.1:265";
proxyWebsockets = true;
};
};
};
}