summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAzat Bahawi <azat@bahawi.net>2022-09-20 02:42:46 +0300
committerAzat Bahawi <azat@bahawi.net>2022-09-20 02:42:46 +0300
commit783f2715f586559961a6440cc1617011ac365501 (patch)
treee82cdc172ccd21ffcd8dd77e818de1ef9023c974 /lib
parent751694df63b34946e1a79d379eac8c35ba40eed1 (diff)
2022-09-20
Diffstat (limited to 'lib')
-rw-r--r--lib/default.nix10
-rw-r--r--lib/my.nix2
2 files changed, 11 insertions, 1 deletions
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}"