aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2021-12-08 18:02:21 +0100
committerAlex Auvolat <alex@adnab.me>2021-12-08 18:02:21 +0100
commit22dc7adc4cf097056dd12c787131b625e6eb94d9 (patch)
tree4e675f4ac9a1f31a8c2982aeb79579df5d18967f
parentad72e17f93c1623c9709d22ba99be6b51abf392b (diff)
downloadnixcfg-22dc7adc4cf097056dd12c787131b625e6eb94d9.tar.gz
nixcfg-22dc7adc4cf097056dd12c787131b625e6eb94d9.zip
Move nix cache to port 7980
-rw-r--r--node/caribou.nix6
-rw-r--r--site/neptune.nix2
2 files changed, 6 insertions, 2 deletions
diff --git a/node/caribou.nix b/node/caribou.nix
index e354754..366251a 100644
--- a/node/caribou.nix
+++ b/node/caribou.nix
@@ -47,6 +47,10 @@
virtualHosts = {
"binarycache.home.adnab.me" = {
serverAliases = [ "binarycache" ];
+ listen = [ {
+ addr = "0.0.0.0";
+ port = 7980;
+ } ];
locations."/".extraConfig = ''
proxy_pass http://localhost:${toString config.services.nix-serve.port};
proxy_set_header Host $host;
@@ -57,5 +61,5 @@
};
};
- networking.firewall.allowedTCPPorts = [ 80 ];
+ networking.firewall.allowedTCPPorts = [ 7980 ];
}
diff --git a/site/neptune.nix b/site/neptune.nix
index 27e2588..13e0e21 100644
--- a/site/neptune.nix
+++ b/site/neptune.nix
@@ -14,7 +14,7 @@
nix = {
binaryCaches = [
- "http://binarycache.home.adnab.me"
+ "http://binarycache.home.adnab.me:7980"
];
binaryCachePublicKeys = [
"binarycache.home.adnab.me:ErR6pMnewf9oVyZJd5uC2nI4EZF49c7Mh86eDZWYZaw="