From ede99acdf75b74d8dca55a934ddbb82dad899bf9 Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Thu, 21 Dec 2023 07:23:51 -0700 Subject: [PATCH] box: fix invidious stuff --- hosts/box/default.nix | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/hosts/box/default.nix b/hosts/box/default.nix index 296273a..b0471f9 100644 --- a/hosts/box/default.nix +++ b/hosts/box/default.nix @@ -431,13 +431,20 @@ in # }; #}; invidious = { - enable = false; + enable = true; database = { createLocally = true; }; + address = "127.0.0.1"; + port = 1538; settings = { - port = lib.mkForce 1538; - host_binding = "127.0.0.1"; + db = { + user = "invidious"; + password = lib.mkForce "invidious"; + dbname = "invidious"; + host = lib.mkForce "127.0.0.1"; + port = 5432; + }; domain = "invidious.bold.daemon"; https_only = true; popular_enabled = false; @@ -863,7 +870,7 @@ in sslCertificate = "${config.sops.secrets.invidious_cert.path}"; locations."/" = { proxyPass = "http://127.0.0.1:${ - toString config.services.invidious.settings.port + toString config.services.invidious.port }"; proxyWebsockets = true; };