From 1c224fcece8daed2bd9b521c93316184485690ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arma=C3=ABl=20Gu=C3=A9neau?= Date: Sun, 24 Nov 2024 16:05:34 +0100 Subject: [PATCH] staging: test de https://git.deuxfleurs.fr/Deuxfleurs/tricot/pulls/16 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (fonctionnalité de tricot permettant de blocker certains user-agent) --- cluster/staging/app/core/deploy/tricot.hcl | 2 +- cluster/staging/app/garage/deploy/garage.hcl | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/cluster/staging/app/core/deploy/tricot.hcl b/cluster/staging/app/core/deploy/tricot.hcl index e7aded6..d642708 100644 --- a/cluster/staging/app/core/deploy/tricot.hcl +++ b/cluster/staging/app/core/deploy/tricot.hcl @@ -24,7 +24,7 @@ job "core-tricot" { driver = "docker" config { - image = "armael/tricot:n6dk1b5xrdww12zf12jbcmihqs6g1brz" + image = "armael/tricot:8sa24l6pxdppb5gq0nnj9kvcl9mijliy-block_user_agent" network_mode = "host" readonly_rootfs = true ports = [ "http_port", "https_port" ] diff --git a/cluster/staging/app/garage/deploy/garage.hcl b/cluster/staging/app/garage/deploy/garage.hcl index f0b164e..89e3d0d 100644 --- a/cluster/staging/app/garage/deploy/garage.hcl +++ b/cluster/staging/app/garage/deploy/garage.hcl @@ -192,6 +192,9 @@ job "garage-staging" { "tricot-add-header Access-Control-Allow-Origin *", "tricot-on-demand-tls-ask http://garage-staging-admin.service.staging.consul:3909/check", "tricot-site-lb", + "tricot-block-user-agent Claude-Web", + "tricot-block-user-agent ClaudeBot", + "tricot-block-user-agent anthropic-ai", ] port = "web" # Check 1: Garage is alive and answering TCP connections