1
0

hosts/hydra-1: Serve plain nix store on cache.nix.clerie.de

This commit is contained in:
clerie 2024-05-12 17:24:46 +02:00
parent 199e6e1791
commit 3b0e66dc01
Signed by: clerie
GPG Key ID: BD9F56480870BAD2

View File

@ -37,6 +37,18 @@
locations."= /index.txt" = { locations."= /index.txt" = {
root = ./cache.nix.clerie.de; root = ./cache.nix.clerie.de;
}; };
locations."= /nix/store/" = {
extraConfig = ''
return 404;
'';
};
locations."/nix/store/" = {
root = "/";
extraConfig = ''
autoindex on;
autoindex_exact_size off;
'';
};
locations."/" = { locations."/" = {
proxyPass = "http://[::1]:5005"; proxyPass = "http://[::1]:5005";
extraConfig = '' extraConfig = ''