basic icecast

This commit is contained in:
zuckerberg
2021-05-16 11:02:24 -04:00
parent 9c4ab246d3
commit 5769daab37
2 changed files with 43 additions and 19 deletions

View File

@@ -26,26 +26,11 @@
services.nginx.enable = true;
# # icecast
# services.icecast = {
# enable = true;
# hostname = "mitty.neet.dev";
# listen.port = 8000;
# admin.password = builtins.readFile /secret/icecast.password;
# };
networking.firewall.allowedTCPPorts = [ 1935 ];
services.peertube = {
# icecast
services.icecast = {
enable = true;
configFile = ./peertube.yaml;
};
services.postfix.enable = true;
services.redis.enable = true;
services.nginx.virtualHosts."mitty.neet.dev" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://localhost:9000";
};
hostname = "mitty.neet.dev";
mount = "stream.mp3";
};
security.acme.acceptTerms = true;