ol / Caddyfile
99i's picture
Update Caddyfile
716d63d verified
raw
history blame contribute delete
530 Bytes
{
# 日志配置
log {
output stdout
format console
}
}
# 监听端口 80 和 443
:3000 {
@secure {
host {host}
protocol https
}
# 代理 /hf/* 路径到本地的相应路径,去掉 /hf/ 前缀
handle_path /we/* {
rewrite * /{path.relative}
reverse_proxy {
to http://127.0.0.1:11434
# 可以添加 header 以调试
header_up X-Forwarded-Host {host}
header_up X-Forwarded-Proto {scheme}
}
}
}