From e28cedb2740f428546fa3e4c33fbc74fbed63eba Mon Sep 17 00:00:00 2001 From: teutat3s Date: Sun, 29 Oct 2023 22:10:29 +0100 Subject: [PATCH 1/4] fix: owncast missing import, enable websockets --- hosts/nachtigall/apps/owncast.nix | 1 + hosts/nachtigall/default.nix | 1 + 2 files changed, 2 insertions(+) diff --git a/hosts/nachtigall/apps/owncast.nix b/hosts/nachtigall/apps/owncast.nix index a79438e5..42cbde12 100644 --- a/hosts/nachtigall/apps/owncast.nix +++ b/hosts/nachtigall/apps/owncast.nix @@ -9,6 +9,7 @@ enableACME = true; forceSSL = true; locations."/".proxyPass = "http://127.0.0.1:5000"; + proxyWebsockets = true; }; # Owncast diff --git a/hosts/nachtigall/default.nix b/hosts/nachtigall/default.nix index f4c1ed82..437f7e9f 100644 --- a/hosts/nachtigall/default.nix +++ b/hosts/nachtigall/default.nix @@ -16,6 +16,7 @@ ./apps/mailman.nix ./apps/mastodon.nix ./apps/nextcloud.nix + ./apps/owncast.nix ./apps/nginx-mastodon.nix ./apps/nginx-mastodon-files.nix ./apps/nginx-website.nix From 9898e35208835ce50a9ba993e212fe297b931623 Mon Sep 17 00:00:00 2001 From: teutat3s Date: Sun, 29 Oct 2023 23:04:11 +0100 Subject: [PATCH 2/4] fix: enable websockets in nginx for owncast --- hosts/nachtigall/apps/owncast.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hosts/nachtigall/apps/owncast.nix b/hosts/nachtigall/apps/owncast.nix index 42cbde12..76296da2 100644 --- a/hosts/nachtigall/apps/owncast.nix +++ b/hosts/nachtigall/apps/owncast.nix @@ -8,8 +8,10 @@ services.nginx.virtualHosts."stream.pub.solar" = { enableACME = true; forceSSL = true; - locations."/".proxyPass = "http://127.0.0.1:5000"; - proxyWebsockets = true; + locations."/" = { + proxyPass = "http://127.0.0.1:5000"; + proxyWebsockets = true; + }; }; # Owncast From 505602bd73d576c1e67b85a9a36bc0a736a4b277 Mon Sep 17 00:00:00 2001 From: teutat3s Date: Sun, 29 Oct 2023 23:04:33 +0100 Subject: [PATCH 3/4] fix: set max body size to 1G for forgejo --- hosts/nachtigall/apps/forgejo.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hosts/nachtigall/apps/forgejo.nix b/hosts/nachtigall/apps/forgejo.nix index 187b9690..e18d2768 100644 --- a/hosts/nachtigall/apps/forgejo.nix +++ b/hosts/nachtigall/apps/forgejo.nix @@ -25,7 +25,12 @@ return 302 /user/oauth2/keycloak; ''; - locations."/".proxyPass = "http://127.0.0.1:3000"; + locations."/" = { + proxyPass = "http://127.0.0.1:3000"; + extraConfig = '' + client_max_body_size 1G; + ''; + }; }; services.gitea = { From 6f9df4d6c36b7bbfe79c3c59b8f51dedf14f5095 Mon Sep 17 00:00:00 2001 From: teutat3s Date: Sun, 29 Oct 2023 23:04:58 +0100 Subject: [PATCH 4/4] docs: use https URL for git checkout --- docs/development-shell.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/development-shell.md b/docs/development-shell.md index eaeb84f9..5628d579 100644 --- a/docs/development-shell.md +++ b/docs/development-shell.md @@ -3,7 +3,7 @@ Clone this repository: ``` -git clone gitea@git.pub.solar:pub-solar/infra.git +git clone https://git.pub.solar/pub-solar/infra-new.git ``` then, install [the package manager nix](https://nixos.org/download).