2025-03-10 00:58:54 +08:00

15 lines
303 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.

example.com {
tls {
dns cloudflare cf_api_token #根据情况自己修改这里用的是cloudflare的API需要github.com/caddy-dns/cloudflare插件
resolvers 1.1.1.1
}
file_server * {
root /var/www/html
}
reverse_proxy /path/* unix+h2c//dev/shm/xrxh.socket {
flush_interval -1
}
}