mediaserver: add nginx
This commit is contained in:
parent
1ed8c41692
commit
216ee7a1a5
1 changed files with 12 additions and 8 deletions
|
@ -28,12 +28,16 @@
|
||||||
|
|
||||||
networking.firewall.interfaces = builtins.listToAttrs
|
networking.firewall.interfaces = builtins.listToAttrs
|
||||||
(builtins.map
|
(builtins.map
|
||||||
(iface: {
|
(iface:
|
||||||
name = iface;
|
let
|
||||||
value = {
|
xx = builtins.trace iface iface;
|
||||||
allowedTCPPorts = [ 80 443 ];
|
in
|
||||||
allowedUDPPorts = [ 443 ];
|
{
|
||||||
};
|
name = iface;
|
||||||
})
|
value = {
|
||||||
(lib.mapAttrsToList (name: value: value.matchConfig.Name) config.systemd.network.networks));
|
allowedTCPPorts = [ 80 443 ];
|
||||||
|
allowedUDPPorts = [ 443 ];
|
||||||
|
};
|
||||||
|
})
|
||||||
|
(lib.mapAttrsToList (name: value: value.matchConfig.Name) config.systemd.network.networks ++ [ "tailscale0" ]));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue