From 84f3707e7840bcd12b4120495a27d120f9e42855 Mon Sep 17 00:00:00 2001 From: Jack O'Sullivan Date: Sun, 28 May 2023 14:29:04 +0100 Subject: [PATCH] nixos/kelder: Switch around local redirects --- nixos/boxes/kelder/containers/spoder/default.nix | 3 +++ nixos/boxes/kelder/containers/spoder/nginx.nix | 10 +++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/nixos/boxes/kelder/containers/spoder/default.nix b/nixos/boxes/kelder/containers/spoder/default.nix index 6525e1c..092b8a7 100644 --- a/nixos/boxes/kelder/containers/spoder/default.nix +++ b/nixos/boxes/kelder/containers/spoder/default.nix @@ -101,6 +101,9 @@ in adminpassFile = config.age.secrets."kelder/nextcloud-root.txt".path; defaultPhoneRegion = "IE"; }; + extraOptions = { + updatechecker = false; + }; }; }; }; diff --git a/nixos/boxes/kelder/containers/spoder/nginx.nix b/nixos/boxes/kelder/containers/spoder/nginx.nix index f84c159..7f31994 100644 --- a/nixos/boxes/kelder/containers/spoder/nginx.nix +++ b/nixos/boxes/kelder/containers/spoder/nginx.nix @@ -137,6 +137,7 @@ in "monitor.${lib.my.kelder.domain}" = withAuth { serverAliases = [ "monitor-local.${lib.my.kelder.domain}" ]; + extraConfig = localRedirect "monitor-local.${lib.my.kelder.domain}"; locations = { "/" = { proxyPass = "http://${allAssignments.kelder.ctrs.ipv4.address}:19999"; @@ -155,7 +156,6 @@ in }; "kontent.${lib.my.kelder.domain}" = { - extraConfig = localRedirect "kontent-local.${lib.my.kelder.domain}"; serverAliases = [ "kontent-local.${lib.my.kelder.domain}" ]; locations = { "/".proxyPass = "${acquisition}:8096"; @@ -169,12 +169,18 @@ in }; }; "torrents.${lib.my.kelder.domain}" = withAuth { + serverAliases = [ "torrents-local.${lib.my.kelder.domain}" ]; + extraConfig = localRedirect "torrents-local.${lib.my.kelder.domain}"; locations."/".proxyPass = "${acquisition}:9091"; }; "jackett.${lib.my.kelder.domain}" = withAuth { + serverAliases = [ "jackett-local.${lib.my.kelder.domain}" ]; + extraConfig = localRedirect "jackett-local.${lib.my.kelder.domain}"; locations."/".proxyPass = "${acquisition}:9117"; }; "radarr.${lib.my.kelder.domain}" = withAuth { + serverAliases = [ "radarr-local.${lib.my.kelder.domain}" ]; + extraConfig = localRedirect "radarr-local.${lib.my.kelder.domain}"; locations."/" = { proxyPass = "${acquisition}:7878"; proxyWebsockets = true; @@ -182,6 +188,8 @@ in }; }; "sonarr.${lib.my.kelder.domain}" = withAuth { + serverAliases = [ "sonarr-local.${lib.my.kelder.domain}" ]; + extraConfig = localRedirect "sonarr-local.${lib.my.kelder.domain}"; locations."/" = { proxyPass = "${acquisition}:8989"; proxyWebsockets = true;