Testing Icecast maybe
This commit is contained in:
parent
0060e25fde
commit
79ed68cd04
5 changed files with 36 additions and 2 deletions
24
nixos/server/icecast.nix
Normal file
24
nixos/server/icecast.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
let
|
||||
secrets = import ../modules/secrets.nix;
|
||||
in {
|
||||
# Icecast, replacing Azuracast maybe
|
||||
services = {
|
||||
icecast = {
|
||||
enable = true;
|
||||
listen.port = 265;
|
||||
hostname = "icecast.${secrets.jimDomain}";
|
||||
admin = {
|
||||
user = "jimbo";
|
||||
password = "${secrets.castPass}";
|
||||
};
|
||||
};
|
||||
nginx.virtualHosts."icecast.${secrets.jimDomain}" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:265";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue