From f9a2902025f18e5fd2bd8b0b56374112e13b55e4 Mon Sep 17 00:00:00 2001 From: Pyjacpp Date: Fri, 7 Aug 2026 11:31:52 +0200 Subject: [PATCH] =?UTF-8?q?fix:=E2=80=AFd=C3=A9sactivation=20de=20l?= =?UTF-8?q?=E2=80=99indexation=20du=20pot=20de=20miel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/services/reverseproxy.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/services/reverseproxy.nix b/modules/services/reverseproxy.nix index 874635e..f66ce0f 100644 --- a/modules/services/reverseproxy.nix +++ b/modules/services/reverseproxy.nix @@ -283,12 +283,17 @@ in # Entrée d’Anubis "${vhostName}-anubis" = mkIf (vhostConfig.anubisConfig != null) ( entryExtraConf - // { + // rec { serverName = mkHostName vhostName mainTld; locations."/" = { proxyPass = "http://unix:/run/anubis/anubis-${vhostName}/socket.sock"; proxyWebsockets = vhostConfig.proxyWebsockets; }; + locations."/.within.website/x/cmd/anubis/api/honeypot/" = locations."/" // { + extraConfig = '' + add_header 'X-Robots-Tag' 'noindex,nofollow' always; + ''; + }; extraConfig = entryExtraConf.extraConfig + '' access_log /var/log/nginx/anubis/access.log; error_log /var/log/nginx/anubis/error.log;