caddy-docker-compose
安装步骤
- 安装bbrplus
1
2apt update -y && apt install -y curl && apt install -y socat && apt install wget -y
wget -N --no-check-certificate "https://github.000060000.xyz/tcpx.sh" && chmod +x tcpx.sh && ./tcpx.sh - 安装 docker + compose
1
curl -fsSL https://get.docker.com | sh
- 安装 ufw
1
apt install ufw -y
- 安装 fail2ban
1
apt-get install fail2ban -y
docker compose.yml
1 | services: |
启动前的注意事项
- 先配置Caddyfile
- Caddyfile 与 compose.yml 在同一目录
- 配置hostname
127.0.0.1 localhost
cloudflare page and hexo
hexo init
npm install
hexo new “hello gpt”
git init
git remote add origin https://github.com/username/reponame
git add .
git commit -m ‘initail commit’
git branch -M main
git push -u origin main
(origin要在仓库中先创建好)
cloudflare-page:
branch: main
build command: npx hexo generate
directory: public
settings:
environment variables: NODE_VERSION 22.11.0
git push -u origin main
vscode:
commit
synic