From e186448fab2c21b0154ce62e74fec9b885498fc9 Mon Sep 17 00:00:00 2001 From: Akshay Date: Thu, 28 Mar 2024 22:00:17 +0000 Subject: add invidious --- hosts/laurel/configuration.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'hosts') diff --git a/hosts/laurel/configuration.nix b/hosts/laurel/configuration.nix index d0edee3..f23a41a 100644 --- a/hosts/laurel/configuration.nix +++ b/hosts/laurel/configuration.nix @@ -61,6 +61,25 @@ services.openssh.enable = true; services.tailscale.enable = true; + services.invidious = { + enable = true; + port = 3333; + domain = "tube.laurel"; + settings = { + db = { + user = "invidious"; + dbname = "invidious"; + }; + }; + }; + services.nginx.virtualHosts."tube.laurel" = { + listen = [{ port = 80; addr = "0.0.0.0"; }]; + locations."/" = { + proxyPass = "http://127.0.0.1:${config.services.invidious.port}"; + proxyWebsockets = true; + }; + }; + nix.settings.experimental-features = [ "nix-command" "flakes" ]; # This option defines the first version of NixOS you have installed on this particular machine, -- cgit v1.2.3