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 +++++++++- lib/my.nix | 2 ++ 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'lib') 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; + ''; } diff --git a/lib/my.nix b/lib/my.nix index a6d88cc..6f744bc 100644 --- a/lib/my.nix +++ b/lib/my.nix @@ -143,6 +143,8 @@ with lib; "alertmanager.${shire}" "frodo.${rohan}" "frodo.${gondor}" + "git.${azahi}" + "git.${shire}" "gotify.${shire}" "grafana.${shire}" "loki.${shire}" -- cgit v1.2.3