1
0
Fork 0

mediaserver: add nginx

This commit is contained in:
Daniel Kempkens 2023-04-14 15:39:46 +02:00
parent 817215c64b
commit c516c9c3c9
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM

View file

@ -1,5 +1,8 @@
{ pkgs, lib, config, ... }:
let
interfaces = lib.mapAttrsToList (name: value: value.matchConfig.Name) config.systemd.network.networks ++ [ "tailscale0" ];
in
{
services.nginx = {
enable = true;
@ -36,5 +39,5 @@
allowedUDPPorts = [ 443 ];
};
})
(builtins.filter builtins.isString (lib.mapAttrsToList (name: value: value.matchConfig.Name) config.systemd.network.networks ++ [ "tailscale0" ])));
(builtins.filter builtins.isString interfaces));
}