feat: 添加 Caddy 配置文件和部署文档

- 创建 Caddyfile 配置 photography.iriver.top 域名
- 配置静态文件服务指向 ~/www/photography/
- 添加性能优化:gzip 压缩、缓存控制
- 配置安全头和错误处理
- 添加详细的 Caddy 部署和配置文档

功能特性:
-  自动 HTTPS (Let's Encrypt)
-  静态资源缓存优化
-  Gzip 压缩
-  安全头配置
-  404 错误页面处理
-  访问日志记录

使用方法:
1. 复制 Caddyfile 到服务器 /etc/caddy/
2. 运行 sudo systemctl reload caddy
3. 访问 https://photography.iriver.top
This commit is contained in:
xujiang
2025-07-09 09:57:55 +08:00
parent 400383d5cb
commit 00c97a3667
3 changed files with 164 additions and 1 deletions

View File

@ -65,7 +65,7 @@ jobs:
echo "✅ 部署完成!"
echo "📁 部署路径:~/www/photography/"
echo "🌐 访问地址http://photography.iriver.top"
echo "🌐 访问地址https://photography.iriver.top"
- name: Notify success
if: success()