1
0
Fork 0
promty/caddy/Caddyfile

50 lines
788 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
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
}
}
}