app/radio: fix fallback mounts, fix admin login
diff --git a/app/radio/kube/radio.libsonnet b/app/radio/kube/radio.libsonnet
index 83e0f43..c13e82d 100644
--- a/app/radio/kube/radio.libsonnet
+++ b/app/radio/kube/radio.libsonnet
@@ -87,7 +87,9 @@
],
["authentication",
["source-password", cfg.icecast.authentication.sourcePassword],
+ ["relay-user", "relay"],
["relay-password", cfg.icecast.authentication.relayPassword],
+ ["admin-user", "admin"],
["admin-password", cfg.icecast.authentication.adminPassword],
],
["hostname", cfg.icecast.hostname],
@@ -97,6 +99,7 @@
["fileserve", "1"],
["paths",
["webroot", "/usr/share/icecast/web"],
+ ["adminroot", "/usr/share/icecast/admin"],
],
["logging",
["accesslog", "-"],
@@ -115,9 +118,10 @@
["genre", cfg.icecast.mounts[m].genre],
["bitrate", std.toString(cfg.icecast.mounts[m].bitrate)],
["hidden", if cfg.icecast.mounts[m].hidden then "1" else "0"],
- ] + (if cfg.icecast.mounts[m].fallbackMount != null then
- [["fallback-mount", cfg.icecast.mounts[m].fallbackMount]] else []
- )
+ ] + (if cfg.icecast.mounts[m].fallbackMount != null then [
+ ["fallback-mount", cfg.icecast.mounts[m].fallbackMount],
+ ["fallback-override", "1"],
+ ] else [])
for m in std.objectFields(cfg.icecast.mounts)
]),
},