环境:seafile server 6.0.9, client 6.0.7, docker, nginx转发
错误:客户端可以正常使用,但是头像无法下载,导致客户端一直报错:“一些服务器未连接”
查看日志后发现是头像的URL明显不正确,SERVICE_URL和FILE_SERVER_ROOT都已经正确配置
[06/26/17 15:24:29][api] network error for http://nas-seafile:8000/media/avatars/6/7/091d6bf7ef0f9021d288af2c279f79/resized/56/9463c6f06efef0bc658274048e48b2f5.png: 主机nas-seafile没有找到
nginx的配置文件如下:
server {
listen 443;
ssl on;
server_name xxx.com;
proxy_set_header X-Forwarded-For $remote_addr;
ssl_certificate /cert/cert1.pem;
ssl_certificate_key /cert/privkey1.pem;
location /webdav {
proxy_pass http://nas-seafile:8080;
}
location / {
proxy_pass http://nas-seafile:8000;
}
location /seafhttp {
rewrite ^/seafhttp(.*)$ $1 break;
proxy_pass http://nas-seafile:8082;
client_max_body_size 0;
proxy_connect_timeout 5s;
proxy_read_timeout 5s;
}
}
始终找不到问题所在,请大家帮忙看看:joy: