From a89d2d32fc978756d282942454cca2e93828ea54 Mon Sep 17 00:00:00 2001 From: Akshay Date: Thu, 28 Mar 2024 22:34:34 +0000 Subject: . --- hosts/laurel/configuration.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'hosts') diff --git a/hosts/laurel/configuration.nix b/hosts/laurel/configuration.nix index 6e98b5d..8dce03f 100644 --- a/hosts/laurel/configuration.nix +++ b/hosts/laurel/configuration.nix @@ -81,9 +81,10 @@ player_style = "youtube"; listen = false; quality = "hd720"; - comments = [ "invidious" ]; + comments = [ "youtube" ]; captions = [ "en" ]; unseen_only = true; + local = true; }; }; services.nginx.virtualHosts."tube.laurel" = { @@ -91,6 +92,12 @@ locations."/" = { proxyPass = "http://127.0.0.1:${builtins.toString config.services.invidious.port}"; proxyWebsockets = true; + extraConfig = '' + proxySetHeader X-Forwarded-For $remote_addr; + proxy_set_header Host $host; # so Invidious knows domain + proxy_http_version 1.1; # to keep alive + proxy_set_header Connection ""; # to keep alive + ''; }; }; -- cgit v1.2.3