Move nix cache to port 7980

This commit is contained in:
Alex 2021-12-08 18:02:21 +01:00
parent ad72e17f93
commit 22dc7adc4c
No known key found for this signature in database
GPG key ID: EDABF9711E244EB1
2 changed files with 6 additions and 2 deletions

View file

@ -47,6 +47,10 @@
virtualHosts = { virtualHosts = {
"binarycache.home.adnab.me" = { "binarycache.home.adnab.me" = {
serverAliases = [ "binarycache" ]; serverAliases = [ "binarycache" ];
listen = [ {
addr = "0.0.0.0";
port = 7980;
} ];
locations."/".extraConfig = '' locations."/".extraConfig = ''
proxy_pass http://localhost:${toString config.services.nix-serve.port}; proxy_pass http://localhost:${toString config.services.nix-serve.port};
proxy_set_header Host $host; proxy_set_header Host $host;
@ -57,5 +61,5 @@
}; };
}; };
networking.firewall.allowedTCPPorts = [ 80 ]; networking.firewall.allowedTCPPorts = [ 7980 ];
} }

View file

@ -14,7 +14,7 @@
nix = { nix = {
binaryCaches = [ binaryCaches = [
"http://binarycache.home.adnab.me" "http://binarycache.home.adnab.me:7980"
]; ];
binaryCachePublicKeys = [ binaryCachePublicKeys = [
"binarycache.home.adnab.me:ErR6pMnewf9oVyZJd5uC2nI4EZF49c7Mh86eDZWYZaw=" "binarycache.home.adnab.me:ErR6pMnewf9oVyZJd5uC2nI4EZF49c7Mh86eDZWYZaw="