forked from hswaw/hscloud
app/radio: fix fallback mounts, fix admin login
parent
f970a7ef0f
commit
9d6929f7c0
|
@ -87,7 +87,9 @@ local kube = import "../../../kube/kube.libsonnet";
|
||||||
],
|
],
|
||||||
["authentication",
|
["authentication",
|
||||||
["source-password", cfg.icecast.authentication.sourcePassword],
|
["source-password", cfg.icecast.authentication.sourcePassword],
|
||||||
|
["relay-user", "relay"],
|
||||||
["relay-password", cfg.icecast.authentication.relayPassword],
|
["relay-password", cfg.icecast.authentication.relayPassword],
|
||||||
|
["admin-user", "admin"],
|
||||||
["admin-password", cfg.icecast.authentication.adminPassword],
|
["admin-password", cfg.icecast.authentication.adminPassword],
|
||||||
],
|
],
|
||||||
["hostname", cfg.icecast.hostname],
|
["hostname", cfg.icecast.hostname],
|
||||||
|
@ -97,6 +99,7 @@ local kube = import "../../../kube/kube.libsonnet";
|
||||||
["fileserve", "1"],
|
["fileserve", "1"],
|
||||||
["paths",
|
["paths",
|
||||||
["webroot", "/usr/share/icecast/web"],
|
["webroot", "/usr/share/icecast/web"],
|
||||||
|
["adminroot", "/usr/share/icecast/admin"],
|
||||||
],
|
],
|
||||||
["logging",
|
["logging",
|
||||||
["accesslog", "-"],
|
["accesslog", "-"],
|
||||||
|
@ -115,9 +118,10 @@ local kube = import "../../../kube/kube.libsonnet";
|
||||||
["genre", cfg.icecast.mounts[m].genre],
|
["genre", cfg.icecast.mounts[m].genre],
|
||||||
["bitrate", std.toString(cfg.icecast.mounts[m].bitrate)],
|
["bitrate", std.toString(cfg.icecast.mounts[m].bitrate)],
|
||||||
["hidden", if cfg.icecast.mounts[m].hidden then "1" else "0"],
|
["hidden", if cfg.icecast.mounts[m].hidden then "1" else "0"],
|
||||||
] + (if cfg.icecast.mounts[m].fallbackMount != null then
|
] + (if cfg.icecast.mounts[m].fallbackMount != null then [
|
||||||
[["fallback-mount", cfg.icecast.mounts[m].fallbackMount]] else []
|
["fallback-mount", cfg.icecast.mounts[m].fallbackMount],
|
||||||
)
|
["fallback-override", "1"],
|
||||||
|
] else [])
|
||||||
for m in std.objectFields(cfg.icecast.mounts)
|
for m in std.objectFields(cfg.icecast.mounts)
|
||||||
]),
|
]),
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue