Start prep for move to icecast

This commit is contained in:
Jimbo 2024-08-26 14:29:23 -04:00
parent 910f20c054
commit 8f2e51ad0a
3 changed files with 17 additions and 16 deletions

View file

@ -34,6 +34,7 @@
"file:///home/jimbo/Documents" "file:///home/jimbo/Documents"
"file:///home/jimbo/Videos" "file:///home/jimbo/Videos"
"file:///home/jimbo/Pictures/Screenshots" "file:///home/jimbo/Pictures/Screenshots"
"file:///home/jimbo/VMs"
# Remote # Remote
"file:///home/jimbo/JimboNFS/Downloads" "file:///home/jimbo/JimboNFS/Downloads"
@ -43,11 +44,9 @@
"file:///home/jimbo/JimboNFS/Videos" "file:///home/jimbo/JimboNFS/Videos"
"file:///home/jimbo/JimboNFS/Projects" "file:///home/jimbo/JimboNFS/Projects"
# Links and mounts
"file:///home/jimbo/VMs"
# More important stuff # More important stuff
"file:///home/jimbo/JimboNFS/School" "file:///home/jimbo/JimboNFS/School"
"file:///etc/nixos"
]; ];
# Disable shadows # Disable shadows

View file

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

View file

@ -11,7 +11,7 @@
recommendedGzipSettings = true; recommendedGzipSettings = true;
recommendedProxySettings = true; recommendedProxySettings = true;
virtualHosts = { virtualHosts = {
# Homepage redirect # Landing page
"${secrets.jimDomain}" = { "${secrets.jimDomain}" = {
enableACME = true; enableACME = true;
addSSL = true; addSSL = true;
@ -43,7 +43,7 @@
}; };
}; };
# Bluemap Proxy # Bluemap Proxy, TODO, move this into the nix-minecraft flake configs
"bluemap.${secrets.jimDomain}" = { "bluemap.${secrets.jimDomain}" = {
enableACME = true; enableACME = true;
forceSSL = true; forceSSL = true;
@ -52,16 +52,6 @@
proxyWebsockets = true; proxyWebsockets = true;
}; };
}; };
# Radio Proxy
"radio.${secrets.jimDomain}" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://127.0.0.1:255";
proxyWebsockets = true;
};
};
}; };
appendConfig = '' appendConfig = ''
rtmp { rtmp {