Files
whoami/Caddyfile
T

49 lines
803 B
Caddyfile

# www → 主域名 301 重定向
www.hyonglin.top {
tls {
dns cloudflare {env.CF_API_TOKEN}
}
redir https://hyonglin.top{path} 301
}
# 主页
hyonglin.top {
tls {
dns cloudflare {env.CF_API_TOKEN}
}
root * /srv/homepage
file_server
}
# frp 管理面板
frp.hyonglin.top {
tls {
dns cloudflare {env.CF_API_TOKEN}
}
reverse_proxy host.docker.internal:7500
}
# 笔记
note.hyonglin.top {
tls {
dns cloudflare {env.CF_API_TOKEN}
}
reverse_proxy silverbullet:3000
}
# 网页 SSH 终端
ssh.hyonglin.top {
tls {
dns cloudflare {env.CF_API_TOKEN}
}
reverse_proxy sshwifty:8182
}
# Git 服务
git.hyonglin.top {
tls {
dns cloudflare {env.CF_API_TOKEN}
}
reverse_proxy gitea:3000
}