diff options
author | Armaël Guéneau <armael.gueneau@ens-lyon.org> | 2024-11-24 16:05:34 +0100 |
---|---|---|
committer | Armaël Guéneau <armael.gueneau@ens-lyon.org> | 2024-11-24 16:05:34 +0100 |
commit | 1c224fcece8daed2bd9b521c93316184485690ca (patch) | |
tree | 07bc5235ac5aa299097972b2acf47ca3cd9932fa | |
parent | 90f861e1e12ebaa232225ff22f7782af1cff563c (diff) | |
download | nixcfg-1c224fcece8daed2bd9b521c93316184485690ca.tar.gz nixcfg-1c224fcece8daed2bd9b521c93316184485690ca.zip |
(fonctionnalité de tricot permettant de blocker certains user-agent)
-rw-r--r-- | cluster/staging/app/core/deploy/tricot.hcl | 2 | ||||
-rw-r--r-- | cluster/staging/app/garage/deploy/garage.hcl | 3 |
2 files changed, 4 insertions, 1 deletions
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 |