fix: désactivation de l’indexation du pot de miel

merge-requests/81/head
Pyjacpp 2026-08-07 11:31:52 +02:00
parent b8bbf370cb
commit f9a2902025
No known key found for this signature in database
GPG Key ID: ED479A5A26930939
1 changed files with 6 additions and 1 deletions

View File

@ -283,12 +283,17 @@ in
# Entrée dAnubis # Entrée dAnubis
"${vhostName}-anubis" = mkIf (vhostConfig.anubisConfig != null) ( "${vhostName}-anubis" = mkIf (vhostConfig.anubisConfig != null) (
entryExtraConf entryExtraConf
// { // rec {
serverName = mkHostName vhostName mainTld; serverName = mkHostName vhostName mainTld;
locations."/" = { locations."/" = {
proxyPass = "http://unix:/run/anubis/anubis-${vhostName}/socket.sock"; proxyPass = "http://unix:/run/anubis/anubis-${vhostName}/socket.sock";
proxyWebsockets = vhostConfig.proxyWebsockets; proxyWebsockets = vhostConfig.proxyWebsockets;
}; };
locations."/.within.website/x/cmd/anubis/api/honeypot/" = locations."/" // {
extraConfig = ''
add_header 'X-Robots-Tag' 'noindex,nofollow' always;
'';
};
extraConfig = entryExtraConf.extraConfig + '' extraConfig = entryExtraConf.extraConfig + ''
access_log /var/log/nginx/anubis/access.log; access_log /var/log/nginx/anubis/access.log;
error_log /var/log/nginx/anubis/error.log; error_log /var/log/nginx/anubis/error.log;