nixos/nginx: add streamConfig option
This commit is contained in:
parent
82cf3b9317
commit
6f330ccedf
@ -179,6 +179,12 @@ let
|
|||||||
${cfg.httpConfig}
|
${cfg.httpConfig}
|
||||||
}''}
|
}''}
|
||||||
|
|
||||||
|
${optionalString (cfg.streamConfig != "") ''
|
||||||
|
stream {
|
||||||
|
${cfg.streamConfig}
|
||||||
|
}
|
||||||
|
''}
|
||||||
|
|
||||||
${cfg.appendConfig}
|
${cfg.appendConfig}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
@ -441,6 +447,21 @@ in
|
|||||||
";
|
";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
streamConfig = mkOption {
|
||||||
|
type = types.lines;
|
||||||
|
default = "";
|
||||||
|
example = ''
|
||||||
|
server {
|
||||||
|
listen 127.0.0.1:53 udp reuseport;
|
||||||
|
proxy_timeout 20s;
|
||||||
|
proxy_pass 192.168.0.1:53535;
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
description = "
|
||||||
|
Configuration lines to be set inside the stream block.
|
||||||
|
";
|
||||||
|
};
|
||||||
|
|
||||||
eventsConfig = mkOption {
|
eventsConfig = mkOption {
|
||||||
type = types.lines;
|
type = types.lines;
|
||||||
default = "";
|
default = "";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user