mirror of
https://github.com/SuperSandro2000/nixos-modules.git
synced 2024-06-13 11:35:47 +02:00
Format
This commit is contained in:
parent
e2683a4fcb
commit
b0884b6bd5
|
@ -27,13 +27,15 @@ in
|
|||
|
||||
nginx = lib.mkMerge [
|
||||
{
|
||||
resolver.addresses = let
|
||||
isIPv6 = addr: builtins.match ".*:.*:.*" addr != null;
|
||||
escapeIPv6 = addr: if isIPv6 addr then
|
||||
"[${addr}]"
|
||||
else
|
||||
addr;
|
||||
in
|
||||
resolver.addresses =
|
||||
let
|
||||
isIPv6 = addr: builtins.match ".*:.*:.*" addr != null;
|
||||
escapeIPv6 = addr:
|
||||
if isIPv6 addr then
|
||||
"[${addr}]"
|
||||
else
|
||||
addr;
|
||||
in
|
||||
lib.optionals (cfg.resolverAddrFromNameserver && config.networking.nameservers != [ ]) (map escapeIPv6 config.networking.nameservers);
|
||||
sslDhparam = lib.mkIf cfg.generateDhparams config.security.dhparams.params.nginx.path;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user