安装:
Fedora or RHEL/CentOS 8:
dnf install 'dnf-command(copr)'
dnf copr enable @caddy/caddy
dnf install caddy
RHEL/CentOS 7:
yum install yum-plugin-copr
yum copr enable @caddy/caddy
yum install caddy
caddyfile:
wofost.com {
root * /home/wofost
file_server
tls [email protected]
}
datecalculator.wofost.com {
reverse_proxy localhost:7000}
}
run
caddy run
如果遇到端口被占用无法重启caddy的情况,请重启整个VPS