(fonctionnalité de tricot permettant de blocker certains user-agent)
This commit is contained in:
Armaël Guéneau 2024-11-24 16:05:34 +01:00
parent 90f861e1e1
commit 1c224fcece
2 changed files with 4 additions and 1 deletions

View file

@ -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" ]

View file

@ -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