diff options
author | Vincent Ambo <tazjin@tvl.su> | 2024-09-26T17·04+0300 |
---|---|---|
committer | tazjin <tazjin@tvl.su> | 2024-09-26T23·27+0000 |
commit | 143f35e003a039dbb918a158317d9e84d2580e73 (patch) | |
tree | e36488eeccf988bc013ab76fb1d02cbdf793d207 /ops/modules/www | |
parent | 2c2a6c906046667c0d9b773c1224bef6955e0307 (diff) |
feat(whitby): switch from nix-serve to harmonia for the cache r/8721
Harmonia is, ostensibly, faster and better and, most importantly, not a giant pile of wonky Perl. I've tested locally that Harmonia works with Nix 2.3 (on both ends), so I think we should be good to go here. We have a vendored copy of the upstream module for now. We need to fix Nix 2.3 compatibility in upstream for the module, but the service itself works fine. Change-Id: I3897bb02b83bd466b6fe7077c05728ac49ea4406 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12517 Tested-by: BuildkiteCI Autosubmit: tazjin <tazjin@tvl.su> Reviewed-by: sterni <sternenseemann@systemli.org>
Diffstat (limited to 'ops/modules/www')
-rw-r--r-- | ops/modules/www/cache.tvl.su.nix | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/ops/modules/www/cache.tvl.su.nix b/ops/modules/www/cache.tvl.su.nix index 99bc008cd6a5..27d1c06dd3a7 100644 --- a/ops/modules/www/cache.tvl.su.nix +++ b/ops/modules/www/cache.tvl.su.nix @@ -17,13 +17,8 @@ alias /run/agenix/nix-cache-pub; } - location = /nix-cache-info { - add_header Content-Type text/plain; - return 200 "StoreDir: /nix/store\nWantMassQuery: 1\nPriority: 50\n"; - } - location / { - proxy_pass http://localhost:${toString config.services.nix-serve.port}; + proxy_pass http://${config.services.depot.harmonia.settings.bind}; } ''; }; |