2024-08-30 01:17:50 -04:00
|
|
|
{outputs, ...}: {
|
2024-08-26 20:45:07 -04:00
|
|
|
# Icecast, replacing Azuracast maybe
|
|
|
|
services = {
|
|
|
|
icecast = {
|
|
|
|
enable = true;
|
|
|
|
listen.port = 265;
|
2024-08-30 01:17:50 -04:00
|
|
|
hostname = "icecast.${outputs.secrets.jimDomain}";
|
2024-08-26 20:45:07 -04:00
|
|
|
admin = {
|
|
|
|
user = "jimbo";
|
2024-08-30 01:17:50 -04:00
|
|
|
password = "${outputs.secrets.castPass}";
|
2024-08-26 20:45:07 -04:00
|
|
|
};
|
|
|
|
};
|
2024-08-30 01:17:50 -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;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|