nixos/nginx: add ipv6 options to resolver
This commit is contained in:
parent
45f4cc1957
commit
5612650767
@ -64,7 +64,7 @@ let
|
||||
include ${cfg.package}/conf/uwsgi_params;
|
||||
|
||||
${optionalString (cfg.resolver.addresses != []) ''
|
||||
resolver ${toString cfg.resolver.addresses} ${optionalString (cfg.resolver.valid != "") "valid=${cfg.resolver.valid}"};
|
||||
resolver ${toString cfg.resolver.addresses} ${optionalString (cfg.resolver.valid != "") "valid=${cfg.resolver.valid}"} ${optionalString (!cfg.resolver.ipv6) "ipv6=off"};
|
||||
''}
|
||||
${upstreamConfig}
|
||||
|
||||
@ -521,6 +521,15 @@ in
|
||||
An optional valid parameter allows overriding it
|
||||
'';
|
||||
};
|
||||
ipv6 = mkOption {
|
||||
type = types.bool;
|
||||
default = true;
|
||||
description = ''
|
||||
By default, nginx will look up both IPv4 and IPv6 addresses while resolving.
|
||||
If looking up of IPv6 addresses is not desired, the ipv6=off parameter can be
|
||||
specified.
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
description = ''
|
||||
|
Loading…
Reference in New Issue
Block a user