From 14c0eedc2b93ffcdd8964f61f9db9072e93cb62f Mon Sep 17 00:00:00 2001 From: lassulus Date: Sun, 23 Jul 2023 23:13:22 +0200 Subject: l lassul.us: add /ip endpoint --- lass/2configs/websites/lassulus.nix | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lass') diff --git a/lass/2configs/websites/lassulus.nix b/lass/2configs/websites/lassulus.nix index b147bd42b..9440413aa 100644 --- a/lass/2configs/websites/lassulus.nix +++ b/lass/2configs/websites/lassulus.nix @@ -64,6 +64,9 @@ in { locations."= /gpg.pub".extraConfig = '' alias ${pkgs.writeText "pub" config.krebs.users.lass-yubikey.pgp.pubkeys.default}; ''; + locations."= /ip".extraConfig = '' + return 200 '$remote_addr'; + ''; }; -- cgit v1.2.3