From 8a2c28642e11d7c5738cede24924f54fdf9a216b Mon Sep 17 00:00:00 2001 From: lassulus Date: Wed, 14 Dec 2022 12:45:22 +0100 Subject: krebs-pages: add /ip --- krebs/3modules/krebs-pages.nix | 1 + 1 file changed, 1 insertion(+) (limited to 'krebs') 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"; }]; }; -- cgit v1.2.3