mirror of https://gitlab.crans.org/nounous/nixos
fix: désactivation de l’indexation du pot de miel
parent
b8bbf370cb
commit
f9a2902025
|
|
@ -283,12 +283,17 @@ in
|
||||||
# Entrée d’Anubis
|
# Entrée d’Anubis
|
||||||
"${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;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue