今天手贱做了系统升级,升级完才发现有很多东西需要修改,研究了半天现在seafile.sh 和seahub.sh都启动了,但是客户端还有网页端无法显示文件, 下周工作需要用同步系统,现在非常着急,求大神指导 谢谢!
看下你的8000(或者自定义的接口)端口的是不是监听在127.0.0.1上如果是改下conf/gunicorn.conf文件。里面有一行bind = 127.0.0.1:“你的端口号”改成bind = ”0.0.0.0:你的端口号“
谢谢
修改了gunicorn.conf 还是一样的情况, 不知道 Nginx那边有没有特别需要注意的地方
看看nginx配置文件有没有报错,nginx能起来吗?
修改文件后有没有重载下? systemctl daemon-reload
不好意思 看配置文件报错应该去哪里看?
试了重载没有效果
之前是用fastcgi, 昨天是从6.2升到7.0.3的, 后来查文档才看到6.3开始就不能用fastcgi, 这个是nginx配置文件 不知道是不是这里有问题
log_format seafileformat ‘$http_x_forwarded_for $remote_addr [$time_local] “$request” $status $body_bytes_sent “$http_referer” “$http_user_agent” $upstream_response_time’;
server {
listen 80;
server_name 106.14.97.80;
rewrite ^ https://$http_host$request_uri? permanent; # force redirect http to https
# Enables or disables emitting nginx version on error pages and in the "Server" response header field.
server_tokens off;
}
server {
listen 443;
ssl on;
ssl_certificate /root/cacert.pem;
ssl_certificate_key /root/privkey.pem;
server_name IP;
server_tokens off;
# …
proxy_pass http://127.0.0.1:8000;
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 https;
proxy_read_timeout 1200s;
}
location / {
proxy_pass http://127.0.0.1:8000;
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;
client_max_body_size 0;
proxy_connect_timeout 36000s;
proxy_read_timeout 36000s;
proxy_send_timeout 36000s;
send_timeout 36000s;
# used for view/edit office file via Office Online Server
client_max_body_size 0;
access_log /var/log/nginx/seahub.access.log seafileformat;
error_log /var/log/nginx/seahub.error.log;
}
location /seafhttp {
rewrite ^/seafhttp(.*)$ $1 break;
proxy_pass http://127.0.0.1:8082;
client_max_body_size 0;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_connect_timeout 36000s;
proxy_read_timeout 36000s;
proxy_send_timeout 36000s;
send_timeout 36000s;
access_log /var/log/nginx/seafhttp.access.log seafileformat;
error_log /var/log/nginx/seafhttp.error.log;
}
location /media {
root /opt/chaosss/seafile-server-latest/seahub;
}
}
nginx可以起来吗 查下配置文件看看 nginx -t