use merge to segment the complex nginx proxy settings
This commit is contained in:
@@ -45,9 +45,10 @@ let
|
||||
|> lib.filterAttrs (
|
||||
name: srv:
|
||||
(srv.enableProxy or false)
|
||||
&& (srv.useDefaultProxy or true)
|
||||
&& !(builtins.elem name standardProxyNames)
|
||||
)
|
||||
|> lib.mapAttrs (name: _srv: { type = "proxyReverse"; });
|
||||
|> lib.mapAttrs (_name: _srv: { type = "proxyReverse"; });
|
||||
in
|
||||
{
|
||||
config = lib.mkIf config.my.enableProxy {
|
||||
|
||||
Reference in New Issue
Block a user