I am trying to install a new debian 9 sevrer with seafile 7 following this procedure:
i installed in “/opt/seafile” instead of “/var/www/html” (not enough space for the repository in var/www to hold my data )
(How) can i make a linked folder from from the seafile folder to var/www/html???
When i get to the part where i have to edit nginx i don’t know where the webserver file of seafile are
nano /etc/nginx/sites-available/seafile
server {
listen 80;
listen [::]:80;
root /var/www/html/seafile; <<<< what is my path when i extracted the TARball to /opt/seafile???
server_name example.com www.example.com;
client_max_body_size 100M;
autoindex off;
access_log /var/log/nginx/example.com.access.log;
error_log /var/log/nginx/example.com.error.log;
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;
proxy_read_timeout 1200s;
}
location /seafhttp {
rewrite ^/seafhttp(.*)$ $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 /var/www/html/seahub;
}
}
Kind Regards
Gerard