summaryrefslogtreecommitdiffstats
path: root/krebs/3modules/krebs-pages.nix
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2022-12-19 14:17:18 +0100
committertv <tv@krebsco.de>2022-12-19 14:17:18 +0100
commit1081102c427ceb9677925035e3b449a1f986d293 (patch)
tree136e42953b9e7eb1b3a6fe270267f5fb663fbb7f /krebs/3modules/krebs-pages.nix
parent68e845da879f2064886794da330b652d60a47796 (diff)
parent37e2e08a0ad47985de277a01d392a11fbe2242f0 (diff)
Merge remote-tracking branch 'prism/master'
Diffstat (limited to 'krebs/3modules/krebs-pages.nix')
-rw-r--r--krebs/3modules/krebs-pages.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/krebs/3modules/krebs-pages.nix b/krebs/3modules/krebs-pages.nix
index c2df65ff5..6dd046a8b 100644
--- a/krebs/3modules/krebs-pages.nix
+++ b/krebs/3modules/krebs-pages.nix
@@ -38,6 +38,7 @@ in {
enable = lib.mkDefault true;
virtualHosts.${cfg.domain} = lib.mkMerge [ cfg.nginx {
root = lib.mkForce cfg.package;
+ locations."= /ip".return = "200 $remote_addr";
locations."= /redirect".return = "301 /redirect";
}];
};