mirror of
https://github.com/kmein/niveum
synced 2026-03-21 20:31:07 +01:00
feat(makanek): host drachenlord radio and stream from zaatar
the streaming links from antenne-asb.ga serve OGG but they say they serve MP3. so mpd gets confused. therefore regularly fetches song urls from antenne-asb.ga, queues, and broadcasts them.
This commit is contained in:
@@ -39,7 +39,8 @@ in
|
||||
|
||||
services.mpd-fm = {
|
||||
enable = true;
|
||||
stationsFile = "/etc/mpd-fm/stations.json";
|
||||
# stationsFile = "/etc/mpd-fm/stations.json";
|
||||
stations = lib.lists.imap0 (id: {desc ? "", logo ? "https://picsum.photos/seed/${builtins.hashString "md5" stream}/300", stream, station}: { inherit id desc logo stream station; }) streams;
|
||||
webPort = 8080;
|
||||
};
|
||||
|
||||
@@ -70,7 +71,7 @@ in
|
||||
recommendedTlsSettings = true;
|
||||
virtualHosts.default = {
|
||||
basicAuth.dj = lib.strings.fileContents <system-secrets/mpd-web.key>;
|
||||
locations."~ ^/listen" = {
|
||||
locations."= /listen.ogg" = {
|
||||
proxyPass = "http://127.0.0.1:${toString multi-room-audio-port}";
|
||||
};
|
||||
locations."/" = {
|
||||
|
||||
Reference in New Issue
Block a user