Remove yellowpages from Icecast, it ain't happening without unsecure http and I'm just not doing that
This commit is contained in:
parent
fd0316e588
commit
5aff442e3b
|
@ -1,6 +1,7 @@
|
||||||
{pkgs, outputs, ...}: {
|
{pkgs, outputs, ...}: {
|
||||||
# Icecast, replacing Azuracast maybe
|
# Icecast, replacing Azuracast maybe
|
||||||
services = {
|
services = {
|
||||||
|
# The host service
|
||||||
icecast = {
|
icecast = {
|
||||||
enable = true;
|
enable = true;
|
||||||
listen.port = 265;
|
listen.port = 265;
|
||||||
|
@ -13,8 +14,23 @@
|
||||||
<authentication>
|
<authentication>
|
||||||
<source-password>${outputs.secrets.castSourcePass}</source-password>
|
<source-password>${outputs.secrets.castSourcePass}</source-password>
|
||||||
</authentication>
|
</authentication>
|
||||||
|
|
||||||
|
<location>Canada</location>
|
||||||
|
<admin>jimbo@jimbosfiles.com</admin>
|
||||||
|
|
||||||
|
<mount type="normal">
|
||||||
|
<mount-name>/jimbops.opus</mount-name>
|
||||||
|
<stream-name>JimBops Radio</stream-name>
|
||||||
|
<stream-description>Music gathered by me, Jimbo.</stream-description>
|
||||||
|
<stream-url>https://icecast.jimbosfiles.com/jimbops.opus</stream-url>
|
||||||
|
<genre>Anything</genre>
|
||||||
|
<type>application/ogg</type>
|
||||||
|
<subtype>vorbis</subtype>
|
||||||
|
</mount>
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# The audio stream
|
||||||
liquidsoap.streams = let
|
liquidsoap.streams = let
|
||||||
jimbops = ''
|
jimbops = ''
|
||||||
# CONFIGURATION
|
# CONFIGURATION
|
||||||
|
@ -35,12 +51,8 @@
|
||||||
host="127.0.0.1",
|
host="127.0.0.1",
|
||||||
port=265,
|
port=265,
|
||||||
password="${outputs.secrets.castSourcePass}",
|
password="${outputs.secrets.castSourcePass}",
|
||||||
name = "JimBops Radio",
|
|
||||||
description = "Music gathered by me, Jimbo.",
|
|
||||||
url="https://icecast.jimbosfiles.com/jimbops.opus",
|
|
||||||
public=true,
|
public=true,
|
||||||
icy_metadata=["artist", "title"],
|
icy_metadata=["artist", "title"],
|
||||||
genre="Anything",
|
|
||||||
mount="jimbops.opus",
|
mount="jimbops.opus",
|
||||||
encoding = "UTF-8",
|
encoding = "UTF-8",
|
||||||
jimbops_fallback
|
jimbops_fallback
|
||||||
|
@ -49,12 +61,17 @@
|
||||||
in {
|
in {
|
||||||
JimBops = pkgs.writeText "liquidjim" jimbops;
|
JimBops = pkgs.writeText "liquidjim" jimbops;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# The web frontend
|
||||||
nginx.virtualHosts."icecast.${outputs.secrets.jimDomain}" = {
|
nginx.virtualHosts."icecast.${outputs.secrets.jimDomain}" = {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://127.0.0.1:265";
|
proxyPass = "http://127.0.0.1:265";
|
||||||
proxyWebsockets = true;
|
proxyWebsockets = true;
|
||||||
|
extraConfig = ''
|
||||||
|
add_header Ice-Public "1";
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue