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

View file

@ -1,6 +1,18 @@
{
let
secrets = import ../modules/secrets.nix;
in {
virtualisation.docker = {
enable = true;
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;
recommendedProxySettings = true;
virtualHosts = {
# Homepage redirect
# Landing page
"${secrets.jimDomain}" = {
enableACME = true;
addSSL = true;
@ -43,7 +43,7 @@
};
};
# Bluemap Proxy
# Bluemap Proxy, TODO, move this into the nix-minecraft flake configs
"bluemap.${secrets.jimDomain}" = {
enableACME = true;
forceSSL = true;
@ -52,16 +52,6 @@
proxyWebsockets = true;
};
};
# Radio Proxy
"radio.${secrets.jimDomain}" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://127.0.0.1:255";
proxyWebsockets = true;
};
};
};
appendConfig = ''
rtmp {