Update README.md

This commit is contained in:
NewName
2024-08-12 05:19:10 +08:00
parent 922e73b88b
commit 3f6f8676e8

View File

@@ -45,6 +45,8 @@ mkdir -p /var/www && touch /var/www/shell.sh && chmod 644 /var/www/shell.sh
sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https curl && 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 -y caddy sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https curl && 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 -y caddy
``` ```
`/etc/caddy/Caddyfile`写入配置文件 `/etc/caddy/Caddyfile`写入配置文件
当然也可以选择使用域名
``` ```
http://IP:80 { http://IP:80 {
root * /var/www root * /var/www