aboutsummaryrefslogtreecommitdiff
path: root/hosts/laurel
diff options
context:
space:
mode:
authorAkshay <[email protected]>2024-03-28 22:34:34 +0000
committerAkshay <[email protected]>2024-03-28 22:34:34 +0000
commita89d2d32fc978756d282942454cca2e93828ea54 (patch)
treea171bf30683ae6caf8fb7eceddc54b5033550077 /hosts/laurel
parent3688a28dea59065b1b891073ac13a638cacf1fbb (diff)
.
Diffstat (limited to 'hosts/laurel')
-rw-r--r--hosts/laurel/configuration.nix9
1 files changed, 8 insertions, 1 deletions
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 @@
81 player_style = "youtube"; 81 player_style = "youtube";
82 listen = false; 82 listen = false;
83 quality = "hd720"; 83 quality = "hd720";
84 comments = [ "invidious" ]; 84 comments = [ "youtube" ];
85 captions = [ "en" ]; 85 captions = [ "en" ];
86 unseen_only = true; 86 unseen_only = true;
87 local = true;
87 }; 88 };
88 }; 89 };
89 services.nginx.virtualHosts."tube.laurel" = { 90 services.nginx.virtualHosts."tube.laurel" = {
@@ -91,6 +92,12 @@
91 locations."/" = { 92 locations."/" = {
92 proxyPass = "http://127.0.0.1:${builtins.toString config.services.invidious.port}"; 93 proxyPass = "http://127.0.0.1:${builtins.toString config.services.invidious.port}";
93 proxyWebsockets = true; 94 proxyWebsockets = true;
95 extraConfig = ''
96 proxySetHeader X-Forwarded-For $remote_addr;
97 proxy_set_header Host $host; # so Invidious knows domain
98 proxy_http_version 1.1; # to keep alive
99 proxy_set_header Connection ""; # to keep alive
100 '';
94 }; 101 };
95 }; 102 };
96 103