phpple / caddy2-cn-doc Goto Github PK
View Code? Open in Web Editor NEWCaddy 2的中文文档
Caddy 2的中文文档
caddy2如何设置ip限制,做如下设置报错
ipfilter / {
rule allow
ip ..*.
}
https://caddy2.dengxiaolong.com/docs/caddyfile/directives/reverse_proxy
reverse_proxy https://example.com {
header_up Host {upstream_hostport}
header_up X-Forwarded-Host {host}
}
现在官方已经不用 header_up X-Forwarded-Host {host}
了
https://caddy2.dengxiaolong.com/docs/caddyfile/directives/file_server
file_server {
隐藏.git
}
应该直接就是hide
我反向代理sse,按照网上说的要添加flush_interval -1,最后发现服务器cpu越跑越高,研究了半天发现原因是caddy在客户端断开sse后,并没有主动断开后端反向代理的连接,导致后端的sse连接越来越多...最后看英文文档才发现多了几句话.
flush_interval 是一个持续时间值,用于调整 Caddy 将响应缓冲区刷新到客户端的频率。默认情况下,不进行定期刷新。负值(通常为 -1)表示“低延迟模式”,该模式完全禁用响应缓冲并在每次写入客户端后立即刷新,并且即使客户端提前断开连接也不会取消对后端的请求。如果响应满足以下条件之一,则忽略此选项,并且响应会立即刷新到客户端
不知道是不是加粗的那句话的原因,最后我把flush_interval设置成0就正常了
大部分内容是谷歌机翻吗?
比如,
原文:All matchers that are not path or wildcard matchers must be named matchers
翻译:所有不是路径或通配符匹配器的匹配器都必须命名为匹配器
而且还没有翻完 ...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.