修改/opt/seafile/conf/seafdav.conf文件
将enable改为true,share_name设置成你想设置的名字
修改nginx代理
添加如下几行
[root@seafile conf]# vim /etc/nginx/conf.d/seafile.conf
location /seafdav {
proxy_pass http://127.0.0.1:8080/seafdav;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_read_timeout 1200s;
client_max_body_size 0;
access_log /var/log/nginx/seafdav.access.log seafileformat;
error_log /var/log/nginx/seafdav.error.log;
}
location /:dir_browser {
proxy_pass http://127.0.0.1:8080/:dir_browser;
}
然后重启seafile服务,或者直接重启服务器
然后就成功了
发表评论