From 9692dc0476162793b9498d094a35e3bb4f7e437c Mon Sep 17 00:00:00 2001 From: Daniel Olsen Date: Mon, 2 Sep 2024 22:52:19 +0200 Subject: [PATCH] bekkalokk/idp: Disallow bots --- hosts/bekkalokk/services/idp-simplesamlphp/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hosts/bekkalokk/services/idp-simplesamlphp/default.nix b/hosts/bekkalokk/services/idp-simplesamlphp/default.nix index 894d573..4577265 100644 --- a/hosts/bekkalokk/services/idp-simplesamlphp/default.nix +++ b/hosts/bekkalokk/services/idp-simplesamlphp/default.nix @@ -202,6 +202,12 @@ in rewrite ^/simplesaml/(.*)$ /$1 redirect; return 404; ''; + "/robots.txt" = { + alias = pkgs.writeTextDir "robots.txt" '' + User-agent: * + Disallow: / + ''; + }; }; }; };