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, ...}: {
|
||||
# Icecast, replacing Azuracast maybe
|
||||
services = {
|
||||
# The host service
|
||||
icecast = {
|
||||
enable = true;
|
||||
listen.port = 265;
|
||||
|
@ -13,8 +14,23 @@
|
|||
<authentication>
|
||||
<source-password>${outputs.secrets.castSourcePass}</source-password>
|
||||
</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
|
||||
jimbops = ''
|
||||
# CONFIGURATION
|
||||
|
@ -35,12 +51,8 @@
|
|||
host="127.0.0.1",
|
||||
port=265,
|
||||
password="${outputs.secrets.castSourcePass}",
|
||||
name = "JimBops Radio",
|
||||
description = "Music gathered by me, Jimbo.",
|
||||
url="https://icecast.jimbosfiles.com/jimbops.opus",
|
||||
public=true,
|
||||
icy_metadata=["artist", "title"],
|
||||
genre="Anything",
|
||||
mount="jimbops.opus",
|
||||
encoding = "UTF-8",
|
||||
jimbops_fallback
|
||||
|
@ -49,12 +61,17 @@
|
|||
in {
|
||||
JimBops = pkgs.writeText "liquidjim" jimbops;
|
||||
};
|
||||
|
||||
# The web frontend
|
||||
nginx.virtualHosts."icecast.${outputs.secrets.jimDomain}" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:265";
|
||||
proxyWebsockets = true;
|
||||
extraConfig = ''
|
||||
add_header Ice-Public "1";
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue