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:
parent
1e4989e67d
commit
ad46c3321c
|
@ -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";
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
|
@ -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
|
||||
)
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue