fix: 修复 Caddy 权限问题和路径配置

- 修复 Caddyfile 中的路径问题,使用绝对路径 /home/gitea/www/photography
- 创建权限修复脚本 fix-caddy-permissions.sh
- 设置正确的目录权限让 caddy 用户可以访问 gitea 用户目录
- 更新部署文档,添加权限修复步骤和故障排除指南

修复内容:
-  使用绝对路径替代 ~ 路径
-  设置目录权限 755 让 caddy 用户可访问
-  添加权限检查和修复脚本
-  完善故障排除文档

现在应该能解决 "permission denied" 错误
This commit is contained in:
xujiang
2025-07-09 10:05:13 +08:00
parent 00c97a3667
commit 23e154aec1
3 changed files with 68 additions and 5 deletions

View File

@ -3,7 +3,7 @@
photography.iriver.top {
# 静态文件服务
root * ~/www/photography
root * /home/gitea/www/photography
# 启用文件服务器
file_server