summaryrefslogtreecommitdiffstats
path: root/krebs
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2022-12-14 12:45:22 +0100
committerlassulus <lassulus@lassul.us>2022-12-14 12:45:42 +0100
commit8a2c28642e11d7c5738cede24924f54fdf9a216b (patch)
tree7b2324958b8347b1c3af71ae0c3a25df7d3e6b06 /krebs
parent36e0f320a2f049e34ac031b45df949e6b0cad27e (diff)
krebs-pages: add /ip
Diffstat (limited to 'krebs')
-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";
}];
};