Add Jellyfin. 73
This commit is contained in:
parent
28bcb88d50
commit
ce6ffd9ee7
15 changed files with 54 additions and 9 deletions
|
@ -7,7 +7,7 @@
|
|||
|
||||
services.icecast = {
|
||||
enable = config.system.server.enable;
|
||||
listen.port = 265;
|
||||
listen.port = 73;
|
||||
hostname = "radio.${config.domains.p2}";
|
||||
admin = {
|
||||
user = "${config.sysusers.main}";
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
output.icecast(
|
||||
%ffmpeg(format="ogg", %audio(codec="libvorbis", samplerate=48000, b="256k", channels=2)),
|
||||
host="127.0.0.1",
|
||||
port=265,
|
||||
port=${toString config.services.icecast.listen.port},
|
||||
password="${config.secrets.castSourcePass}",
|
||||
encoding = "UTF-8",
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{ pkgs, lib, config, ... }:
|
||||
{
|
||||
config = lib.mkIf config.services.icecast.enable {
|
||||
services.liquidsoap.streams = lib.mkIf config.services.icecast.enable {
|
||||
services.liquidsoap.streams = {
|
||||
jimscrapped = pkgs.writeText "jimscrapped" ''
|
||||
settings.log.stdout.set(true)
|
||||
settings.init.allow_root.set(true)
|
||||
|
@ -13,7 +13,7 @@
|
|||
output.icecast(
|
||||
%ffmpeg(format="ogg", %audio(codec="libvorbis", samplerate=48000, b="256k", channels=2)),
|
||||
host="127.0.0.1",
|
||||
port=265,
|
||||
port=${toString config.services.icecast.listen.port},
|
||||
password="${config.secrets.castSourcePass}",
|
||||
encoding = "UTF-8",
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
enableACME = true;
|
||||
forceSSL = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:265";
|
||||
proxyPass = "http://127.0.0.1:73";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue