diff --git a/hosts/flora-6/caddy.nix b/hosts/flora-6/caddy.nix index acd53964..8d00284e 100644 --- a/hosts/flora-6/caddy.nix +++ b/hosts/flora-6/caddy.nix @@ -107,6 +107,14 @@ reverse_proxy :4000 ''; }; + "stream.pub.solar" = { + logFormat = lib.mkForce '' + output discard + ''; + extraConfig = '' + reverse_proxy :5000 + ''; + }; "list.pub.solar" = { logFormat = lib.mkForce '' output discard diff --git a/hosts/flora-6/flora-6.nix b/hosts/flora-6/flora-6.nix index 963ba486..6e376e4f 100644 --- a/hosts/flora-6/flora-6.nix +++ b/hosts/flora-6/flora-6.nix @@ -20,6 +20,7 @@ in { ./keycloak.nix ./gitea.nix ./mailman.nix + ./owncast.nix profiles.base-user profiles.users.root # make sure to configure ssh keys diff --git a/hosts/flora-6/owncast.nix b/hosts/flora-6/owncast.nix new file mode 100644 index 00000000..9b7891a4 --- /dev/null +++ b/hosts/flora-6/owncast.nix @@ -0,0 +1,24 @@ +{ + config, + lib, + pkgs, + self, + ... +}: { + # owncast + services.owncast = { + enable = true; + user = "owncast"; + group = "owncast"; + # The directory where owncast stores its data files. + dataDir = "/var/lib/owncast"; + # Open the appropriate ports in the firewall for owncast. + openFirewall = true; + # The IP address to bind the owncast web server to. + listen = "127.0.0.1"; + # TCP port where owncast rtmp service listens. + rtmp-port = 1935; + # TCP port where owncast web-gui listens. + port = 5000; + }; +}