1
0

hosts/hydra-1: add nix-cache.clerie.de

This commit is contained in:
clerie 2022-11-13 16:38:18 +01:00
parent df4e162a9b
commit 8ddfcf6c17

View File

@ -46,6 +46,13 @@
useSubstitutes = true;
};
services.nix-serve = {
enable = true;
port = 5005;
bindAddress = "127.0.0.1";
secretKeyFile = "/var/src/secrets/nix-serve/secret-key.key";
};
services.nginx.enable = true;
services.nginx.virtualHosts = {
"hydra.clerie.de" = {
@ -57,6 +64,13 @@
};
};
};
"nix-cache.clerie.de" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://localhost:5005";
};
};
};
networking.firewall.allowedTCPPorts = [ 80 443 ];