From f48782e98722e4b46e318b5172beeec6c2655ee7 Mon Sep 17 00:00:00 2001 From: teutat3s Date: Sun, 29 Oct 2023 03:35:35 +0100 Subject: [PATCH 1/2] feat: owncast initial commit https://owncast.online/ --- hosts/nachtigall/apps/owncast.nix | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 hosts/nachtigall/apps/owncast.nix diff --git a/hosts/nachtigall/apps/owncast.nix b/hosts/nachtigall/apps/owncast.nix new file mode 100644 index 00000000..a79438e5 --- /dev/null +++ b/hosts/nachtigall/apps/owncast.nix @@ -0,0 +1,30 @@ +{ + flake, + config, + lib, + pkgs, + ... +}: { + services.nginx.virtualHosts."stream.pub.solar" = { + enableACME = true; + forceSSL = true; + locations."/".proxyPass = "http://127.0.0.1:5000"; + }; + + # 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; + }; +} From 4897317f4ff9ce010ece75a1263b8e8f57e66db9 Mon Sep 17 00:00:00 2001 From: teutat3s Date: Sun, 29 Oct 2023 03:37:22 +0100 Subject: [PATCH 2/2] feat: add more nginx recommended settings --- hosts/nachtigall/apps/nginx.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hosts/nachtigall/apps/nginx.nix b/hosts/nachtigall/apps/nginx.nix index 9849b820..65ad9886 100644 --- a/hosts/nachtigall/apps/nginx.nix +++ b/hosts/nachtigall/apps/nginx.nix @@ -15,7 +15,10 @@ in { proxyCachePath.cache = { enable = true; }; + recommendedGzipSettings = true; + recommendedOptimisation = true; recommendedProxySettings = true; + recommendedTlsSettings = true; }; security.acme = {