安装caddy
1 2 3 4 5
| sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.list sudo apt update sudo apt install caddy
|
静态网页
1 2 3 4 5 6 7
| www.lolli.fun, xn--2o8ha.ml, xn--2o8haa.ml, lollipopkit.com, lolli.tech, blog.lolli.tech { root * /var/www/blog/public encode gzip file_server { hide .git } }
|
反代
HASHEDPASSWORD:由caddy hash-password [--plaintext <password>] [--algorithm <name>] [--salt <string>]
生成
1 2 3 4 5 6 7 8 9
| novel.lolli.tech { basicauth { USERNAME HASHEDPASSWORD } reverse_proxy { to jilin:1323 sh:1323 127.0.0.1:1323 lb_policy random } }
|