diff options
author | lassulus <git@lassul.us> | 2023-04-19 17:49:09 +0200 |
---|---|---|
committer | lassulus <git@lassul.us> | 2023-04-19 17:49:09 +0200 |
commit | 6cb7fb16a1e4b9a70fc4668dd1c9db19a3ea1c5c (patch) | |
tree | b7e7e62654240e3903827fbc71739d92473df47e /lass/2configs/binary-cache | |
parent | 4a57bde3df423bc1d8317690d56bbd60286c45b3 (diff) |
l binary-cache: split into server & proxy, add neoprism
Diffstat (limited to 'lass/2configs/binary-cache')
-rw-r--r-- | lass/2configs/binary-cache/client.nix | 1 | ||||
-rw-r--r-- | lass/2configs/binary-cache/server.nix | 10 |
2 files changed, 2 insertions, 9 deletions
diff --git a/lass/2configs/binary-cache/client.nix b/lass/2configs/binary-cache/client.nix index b0e0a8b88..de15aff92 100644 --- a/lass/2configs/binary-cache/client.nix +++ b/lass/2configs/binary-cache/client.nix @@ -4,6 +4,7 @@ nix = { binaryCaches = [ "http://cache.prism.r" + "http://cache.neoprism.r" "https://cache.nixos.org/" ]; binaryCachePublicKeys = [ diff --git a/lass/2configs/binary-cache/server.nix b/lass/2configs/binary-cache/server.nix index 30bef5137..bdd568c15 100644 --- a/lass/2configs/binary-cache/server.nix +++ b/lass/2configs/binary-cache/server.nix @@ -14,7 +14,7 @@ services.nginx = { enable = true; virtualHosts.nix-serve = { - serverAliases = [ "cache.prism.r" ]; + serverAliases = [ "cache.${config.networking.hostName}.r" ]; locations."/".extraConfig = '' proxy_pass http://localhost:${toString config.services.nix-serve.port}; ''; @@ -26,14 +26,6 @@ ''}; ''; }; - virtualHosts."cache.krebsco.de" = { - forceSSL = true; - serverAliases = [ "cache.lassul.us" ]; - enableACME = true; - locations."/".extraConfig = '' - proxy_pass http://localhost:${toString config.services.nix-serve.port}; - ''; - }; }; } |