mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
nginx module: add upstream extraConfig
This commit is contained in:
parent
61a87491dc
commit
a08645e9be
@ -38,6 +38,7 @@ let
|
||||
${toString (flip mapAttrsToList upstream.servers (name: server: ''
|
||||
server ${name} ${optionalString server.backup "backup"};
|
||||
''))}
|
||||
${upstream.extraConfig}
|
||||
}
|
||||
''));
|
||||
|
||||
@ -492,6 +493,13 @@ in
|
||||
'';
|
||||
default = {};
|
||||
};
|
||||
extraConfig = mkOption {
|
||||
type = types.lines;
|
||||
default = "";
|
||||
description = ''
|
||||
These lines go to the end of the upstream verbatim.
|
||||
'';
|
||||
};
|
||||
};
|
||||
});
|
||||
description = ''
|
||||
|
Loading…
Reference in New Issue
Block a user