I’m still trying to install Seafile on a Debian 10 system which is running the Virtualmin control panel and Nginx. I’m not very savvy with Nginx and I think that might be where my troubles lie.
With my Virtualmin setup of Debian 10, I have php-fpm listening to port 8000.
So I had to figure out how to get seahub running as it was unable to start up with Seafile 7.1.5. I found a workaround to get seahub on port 8085 by:
- adding a user seafileu and installing Seafile 7.1.5 in that user’s directory
- replacing port 8000 with port 8085 in:
- vi …/conf/gunicorn.conf.py
- vi …/conf/ccnet.conf
After changing the port numbers in those two files to 8085, I could then:
./seafile.sh start
./seahub.sh start 8085
netstat -tunlp shows
tcp 0 0 0.0.0.0:8082 0.0.0.0:* LISTEN 1247/seaf-server
tcp 0 0 127.0.0.1:8085 0.0.0.0:* LISTEN 1282/python3
ss -tunlp4 shows:
tcp LISTEN 0 128 0.0.0.0:8082 0.0.0.0:* users:((“seaf-server”,pid=2048,fd=16))
tcp LISTEN 0 128 127.0.0.1:8085 0.0.0.0:* users:((“python3”,pid=2453,fd=6),(“python3”,pid=2452,fd=6),(“python3”,pid=2451,fd=6),(“python3”,pid=2450,fd=6),(“python3”,pid=2449,fd=6),(“python3”,pid=2445,fd=6))
t
So I think seafile/seahub are up and running and listening on ports 8082/8085.
My /etc/nginx/nginx.conf file includes files in /etc/nginx/conf.d
That’s where /etc/nginx/conf.d/seafile.conf is. Currently it is:
server {
listen 80;
listen [::]:80;
server_name krishnify.com;
autoindex off;
client_max_body_size 100M;
access_log /etc/nginx/seafile.com.access.log;
error_log /etc/nginx/seafile.com.error.log;
location / {
proxy_pass http://127.0.0.1:8085;
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_read_timeout 1200s;
}
location /docs {
rewrite ^/docs(.*)$ $1 break;
proxy_pass http://127.0.0.1:8082;
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;
}
location /media {
root /home/seafileu/seafile-server/seahub;
}
}
. . . . .
When I visit http://krishnify.com/docs, I get a Nginx Not found page.
Does anyone more savvy with Nginx have any tips for me?
Thanks,