[SOLVED] Using nginx reverse proxy for seafile-docker

works good so far.

i have only an issue with seafdav.
MOVE returns 502 Bad Gateway

for exp. on FolderSync App
502 Bad Gateway: Source and destination must have the same scheme. If you are running behind a reverse proxy, you may have to rewrite the 'Destination' header.

maybe same problem like:

EDIT:
in
seafile-data/nginx/conf/seafile.nginx.conf

i have change /seafdav location to:

    location /seafdav {
                 proxy_pass http://127.0.0.1:8080;
                proxy_http_version 1.1;
                proxy_set_header HOST $host;
                #proxy_set_header Connection "upgrade";
                proxy_set_header X-NginX-Proxy true;
                proxy_buffering off;
                client_max_body_size 0;
                proxy_request_buffering off;
                set $dest $http_destination;
                if ($http_destination ~ "^https://my.domain/seafdav/(.+)") {
                        set $dest /seafdav/$1;
                }
                proxy_set_header DESTINATION $dest;
               

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

Webdav works good now