1
0
Fork 0

mediaserver: add nginx

This commit is contained in:
Daniel Kempkens 2023-04-14 15:31:43 +02:00
parent 1ed8c41692
commit 216ee7a1a5
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM

View file

@ -28,12 +28,16 @@
networking.firewall.interfaces = builtins.listToAttrs
(builtins.map
(iface: {
(iface:
let
xx = builtins.trace iface iface;
in
{
name = iface;
value = {
allowedTCPPorts = [ 80 443 ];
allowedUDPPorts = [ 443 ];
};
})
(lib.mapAttrsToList (name: value: value.matchConfig.Name) config.systemd.network.networks));
(lib.mapAttrsToList (name: value: value.matchConfig.Name) config.systemd.network.networks ++ [ "tailscale0" ]));
}