Make nginx listen on all interfaces

Needed for local hosts to contact the nix cache via HTTP directly.
We also allow the incoming traffic on port 80.
This commit is contained in:
Rodrigo Arias 2025-04-11 10:03:05 +02:00
parent 785f7cfee8
commit 3619f09c78

View File

@ -17,13 +17,14 @@ let
};
in
{
networking.firewall.allowedTCPPorts = [ 80 ];
services.nginx = {
enable = true;
virtualHosts."jungle.bsc.es" = {
root = "${website}";
listen = [
{
addr = "127.0.0.1";
addr = "0.0.0.0";
port = 80;
}
];