35 lines
529 B
Caddyfile
35 lines
529 B
Caddyfile
{
|
||
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
|
||
}
|
||
}
|
||
}
|