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.

Reviewed-by: Aleix Boné <abonerib@bsc.es>
This commit is contained in:
Rodrigo Arias 2025-04-11 10:03:05 +02:00
parent 52213d388d
commit 51b6a8b612

View File

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