🎨 (hydrogen) declare the firewall's allowedTCPPorts in the services
(openssh's port is automatically opened by the module)
This commit is contained in:
parent
336da0f8e6
commit
752d0a1ad1
|
@ -6,4 +6,11 @@
|
||||||
./nginx
|
./nginx
|
||||||
./ssh
|
./ssh
|
||||||
];
|
];
|
||||||
|
|
||||||
|
networking.firewall = {
|
||||||
|
allowedTCPPorts = [
|
||||||
|
80 # http
|
||||||
|
443 # https / tls
|
||||||
|
];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,14 +8,5 @@
|
||||||
|
|
||||||
# domain name servers, use clouflare family
|
# domain name servers, use clouflare family
|
||||||
nameservers = ["1.1.1.2" "1.0.0.2"];
|
nameservers = ["1.1.1.2" "1.0.0.2"];
|
||||||
|
|
||||||
# TODO: bouger ça à côté des applications
|
|
||||||
firewall = {
|
|
||||||
allowedTCPPorts = [
|
|
||||||
624 # ssh
|
|
||||||
80 # http
|
|
||||||
443 # https
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue