Files
bluebird/deploy/Caddyfile.example
T

17 lines
490 B
Caddyfile

# 两个明确入口:HTTP直接提供服务,HTTPS使用自动证书。
# 代理异机时改为蓝鸟实际内网IP,并将代理IP加入trusted_proxies。
{
auto_https disable_redirects
}
http://share.example.com {
reverse_proxy 192.168.1.10:8080 {
flush_interval -1
# 不配置request_buffers/response_buffers;流式传输,避免额外磁盘副本
}
}
https://share.example.com {
reverse_proxy 192.168.1.10:8080 {
flush_interval -1
}
}