Files
whoami/Caddyfile
T

58 lines
1.0 KiB
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}
}
# Xinquan Dashboard:密码保护的图文页面
handle_path /xinquandashboard/* {
basic_auth {
xqzk $2a$14$GrTqs4WiYHepvOq/0CnOU.Zq2.cA4B2FcilgGIv/6Jbi9BZX/8rNK
}
reverse_proxy xinquan:8000
}
handle {
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
}