From 783f2715f586559961a6440cc1617011ac365501 Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Tue, 20 Sep 2022 02:42:46 +0300 Subject: 2022-09-20 --- lib/default.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'lib/default.nix') diff --git a/lib/default.nix b/lib/default.nix index 6517125..d121f5e 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -28,5 +28,13 @@ lib: _: rec { mkTcpMem = min: ini: max: assert min <= ini && ini <= max; - builtins.concatMapStrings (x: toString x + " ") (map (pow 2) [min ini max]); + lib.concatMapStrings (x: toString x + " ") (map (pow 2) [min ini max]); + + # TODO Move this somehow to the NGINX module itself. + nginxInternalOnly = '' + if ($internal != 1) { + return 403; + } + access_log off; + ''; } -- cgit v1.2.3