diff options
-rw-r--r-- | hosts/laurel/configuration.nix | 9 |
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 | ||