nixos/object: Initial working atticd cache

This commit is contained in:
2023-11-17 15:05:12 +00:00
parent f72713410a
commit 36cd77c697
5 changed files with 50 additions and 8 deletions

View File

@@ -440,14 +440,10 @@ in
};
"nix-cache.${pubDomain}" = {
extraConfig = ''
${extraConfig}
proxy_set_header Host "nix-cache.s3.nul.ie";
'';
locations = {
"/".proxyPass = s3Upstream;
"/".proxyPass = "http://${host}:8069";
"~ ${nixCacheableRegex}" = {
proxyPass = s3Upstream;
proxyPass = "http://${host}:8069";
extraConfig = nixCacheHeaders;
};
};