mediaserver: add nginx
This commit is contained in:
parent
817215c64b
commit
c516c9c3c9
1 changed files with 4 additions and 1 deletions
|
@ -1,5 +1,8 @@
|
||||||
{ pkgs, lib, config, ... }:
|
{ pkgs, lib, config, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
interfaces = lib.mapAttrsToList (name: value: value.matchConfig.Name) config.systemd.network.networks ++ [ "tailscale0" ];
|
||||||
|
in
|
||||||
{
|
{
|
||||||
services.nginx = {
|
services.nginx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -36,5 +39,5 @@
|
||||||
allowedUDPPorts = [ 443 ];
|
allowedUDPPorts = [ 443 ];
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
(builtins.filter builtins.isString (lib.mapAttrsToList (name: value: value.matchConfig.Name) config.systemd.network.networks ++ [ "tailscale0" ])));
|
(builtins.filter builtins.isString interfaces));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue