{ cache log { level INFO format transform `{request>client_ip} - {user_id} [{ts}] "{request>method} {request>uri} {request>proto}" {status} {size} "{request>headers>Referer>[0]}" "{request>headers>User-Agent>[0]}"` { time_format "02/Jan/2006: 15:04:05 -0700" } } servers :80 { trusted_proxies static private_ranges client_ip_headers X-Forwarded-For X-Real-IP } } http://ядро.орг, http://*.ядро.орг { tls internal encode gzip zstd log cache { # we don't want to flood the upstream from the same IP mode bypass ttl 30m timeout { backend 10m } } import Caddyfile.yadro proxy:80 } :9000 { reverse_proxy { dynamic a puppy 80 lb_policy least_conn transport http { response_header_timeout 10m read_timeout 10m write_timeout 10m } } cache { allowed_http_verbs POST ttl 7d key { headers X-Translation-Direction } timeout { backend 10m } } }