06
02/25
SSL 证书免费,自动续期的web服务器Caddy
使用docker-compose安装caddy: version: '3' services: caddy: container_name: caddy image: caddy:latest ports: - "80:80" - "443:443" volumes: - ./caddy/Caddyfile:/etc/caddy/Caddyfile - ./caddy/wwwroot:/srv - ./caddy/data:/data - ./caddy/config:/config restart: unless-stopped Caddyfile配置如下: # 配置 HTTPS 服务,注blog为docker镜像名, 也可以是ip peos.cn { reverse_proxy * blog:80 { h...