diff --git a/users/flokli/nixos/nixos-tvix-cache/nar-bridge.nix b/users/flokli/nixos/nixos-tvix-cache/nar-bridge.nix index f8aa8a7b4..27164108f 100644 --- a/users/flokli/nixos/nixos-tvix-cache/nar-bridge.nix +++ b/users/flokli/nixos/nixos-tvix-cache/nar-bridge.nix @@ -21,6 +21,9 @@ locations."/" = { proxyPass = "http://unix:/run/nar-bridge.sock:/"; extraConfig = '' + # Sometimes it takes a while to download and unpack from upstream. + proxy_read_timeout 180s; + # Restrict allowed HTTP methods limit_except GET HEAD { # nar bridge allows to upload nars via PUT