From 2b19cbf0ceff187ee7b83696d137acfeb3149dfc Mon Sep 17 00:00:00 2001 From: Daniel Kempkens Date: Mon, 13 Feb 2023 21:39:00 +0100 Subject: [PATCH] nitter: Disable auth for pics and videos --- system/nixos/nitter.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/system/nixos/nitter.nix b/system/nixos/nitter.nix index afba923..da6e644 100644 --- a/system/nixos/nitter.nix +++ b/system/nixos/nitter.nix @@ -35,9 +35,20 @@ forceSSL = false; enableACME = false; - basicAuthFile = config.age.secrets.nitter-auth.path; locations."/" = { + basicAuthFile = config.age.secrets.nitter-auth.path; + + recommendedProxySettings = true; + proxyPass = "http://127.0.0.1:8001"; + }; + + locations."/pic/" = { + recommendedProxySettings = true; + proxyPass = "http://127.0.0.1:8001"; + }; + + locations."/video/" = { recommendedProxySettings = true; proxyPass = "http://127.0.0.1:8001"; };