Seafile – поднимаем WebDAV over https

Понадобилось поднять WebDAV, который поддерживается сервером Seafile.

Правим seafdav.conf

# vi /home/www/seafile/conf/seafdav.conf

[WEBDAV]
enabled = true
port = 8080
fastcgi = false
share_name = /seafdav

В nginx добавляем запись:

# vi /etc/nginx/sites-available/seafile

location /seafdav {
       proxy_pass http://127.0.0.1:8080;
       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_http_version 1.1;
       proxy_connect_timeout 36000s;
       proxy_read_timeout 36000s;
       proxy_send_timeout 36000s;
       send_timeout 36000s;

      # This option is only available for Nginx >= 1.8.0.
      client_max_body_size 0;
      proxy_request_buffering off;

      access_log /var/log/nginx/seafdav.access.log;
      error_log /var/log/nginx/seafdav.error.log;
}

Перезагружаем сервисы:

# systemctl restart seafile 
# systemctl restart seahub
# nginx -s reload

В Windows подключаем хранилище как сетевой диск, введя наш логин/пароль от учетки.