promty/caddy/Caddyfile

35 lines
529 B
Caddyfile
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
cache
log {
format console
level WARN
}
}
http://ядро.орг, http://*.ядро.орг {
tls internal
encode gzip zstd
cache {
# we don't want to flood the upstream from the same IP
mode bypass
ttl 30m
}
import Caddyfile.yadro proxy:80
}
:9000 {
reverse_proxy {
dynamic a puppy 80
lb_policy least_conn
}
cache {
allowed_http_verbs POST
ttl 7d
timeout {
backend 1m
}
}
}