Get rid of docker bc lag, move to Icecast. Temporary, I will make a web ui for this myself somehow

This commit is contained in:
Jimbo 2024-09-07 11:40:18 -04:00
parent 1e4989e67d
commit ad46c3321c
4 changed files with 6 additions and 26 deletions

View file

@ -86,11 +86,6 @@
fsType = "none";
options = [ "bind" ];
};
"/var/lib/private/pufferpanel/servers" = {
device = "/export/JimboNFS/System/var/lib/pufferpanel/servers";
fsType = "none";
options = [ "bind" ];
};
"/srv/minecraft" = {
device = "/export/JimboNFS/System/srv/minecraft";
fsType = "none";

View file

@ -21,7 +21,6 @@
./services/openssh.nix
./server/acme.nix
./server/ddclient.nix
./server/docker.nix
./server/icecast.nix
./server/firewall.nix
./server/gitea.nix

View file

@ -1,16 +0,0 @@
{outputs, ...}: {
virtualisation.docker = {
enable = true;
daemon.settings.log-driver = "json-file";
};
# Azuracast Nginx: TODO, get a better solution than docker lmao
services.nginx.virtualHosts."radio.${outputs.secrets.jimDomain}" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://127.0.0.1:255";
proxyWebsockets = true;
};
};
}

View file

@ -24,23 +24,25 @@
settings.decoder.file_extensions.mp4.set(["m4a", "m4b", "m4p", "m4v", "m4r", "3gp", "mp4"])
# Define the source with random playlist
jimbops = mksafe(normalize(playlist(mode='randomize', reload=1, reload_mode="rounds", "/export/JimboNFS/Music/")))
jimbops = mksafe(playlist(mode='randomize', reload=1, reload_mode="rounds", "/export/JimboNFS/Music/"))
# Ensure the stream never stops
jimbops_fallback = fallback([jimbops, jimbops])
# Output configuration to Icecast
output.icecast(
%vorbis(channels=2, samplerate=48000, quality=0.8),
%ffmpeg(format="ogg", %audio(codec="libvorbis", samplerate=48000, b="256k", channels=2)),
host="127.0.0.1",
port=265,
password="${outputs.secrets.castSourcePass}",
description="JimBops Radio",
name = "JimBops Radio",
description = "Music gathered by me, Jimbo.",
url="https://icecast.jimbosfiles.com/jimbops.opus",
public=true,
icy_metadata=["artist", "title"],
genre="My personal music folder.",
genre="Anything",
mount="jimbops.opus",
encoding = "UTF-8",
jimbops_fallback
)
'';