Skip to content

Commit

Permalink
feat: add proxy_set_header for cache.nixos.org in nixBinaryCacheProxy…
Browse files Browse the repository at this point in the history
… configuration
  • Loading branch information
BCNelson committed Dec 8, 2024
1 parent 135ec59 commit bf3fabd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/nixos/nixBinaryCacheProxy/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ in
proxyPass = "$upstream_endpoint";
recommendedProxySettings = false;
extraConfig = ''
proxy_set_header Host cache.nixos.org;
proxy_cache nixbinarycache;
proxy_cache_valid 200 302 60m;
Expand All @@ -102,6 +103,7 @@ in
proxyPass = "$upstream_endpoint";
recommendedProxySettings = false;
extraConfig = ''
proxy_set_header Host cache.nixos.org;
proxy_cache nixbinarycache;
proxy_cache_valid 200 302 60m;
Expand Down

0 comments on commit bf3fabd

Please sign in to comment.