From 14d1052f6324b879c72e7d39c57ace97555b23d5 Mon Sep 17 00:00:00 2001 From: revol-xut Date: Wed, 28 Sep 2022 08:06:27 +0200 Subject: [PATCH] basic streaming setup --- flake.nix | 1 + modules/stream.nix | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index 4ee246c..b49d4cb 100755 --- a/flake.nix +++ b/flake.nix @@ -62,6 +62,7 @@ ./modules/nginx.nix ./modules/hedgedoc.nix ./modules/wiki.nix + ./modules/stream.nix { sops.defaultSopsFile = ./secrets/durian.yaml; } diff --git a/modules/stream.nix b/modules/stream.nix index 295b834..9ecf2d2 100644 --- a/modules/stream.nix +++ b/modules/stream.nix @@ -1,6 +1,6 @@ {pkgs, lib, config, ...}: let - website = fetchFromGithub { + website = pkgs.fetchFromGitHub { owner = "fsr"; repo = "ese20-ansible"; rev = "1b380f3bfd48aae2a17aefbbdd0538f09b7d3bcf"; @@ -24,12 +24,11 @@ in { locations."/" = let cfg = config.services.owncast; in { - proxyPass = "http://${toString cfg.listen}:${toString cfg.post}"; + proxyPass = "http://${toString cfg.listen}:${toString cfg.port}"; proxyWebsockets = true; }; }; }; - }; }; owncast = { enable = true;