I try to make a WebDAV share compatible with Windows 11 client using Debian 11, Nginx, Docker in Pacemaker cluster with two nodes and one quorum node. I found https://github.com/dgraziotin/docker-nginx-webdav-nononsense , pulled the Docker image and it run successfully in single mode with the second Nginx as reverse proxy. Windows 11 correctly attached the share and worked with it. Then I made Docker resource in Pacemaker, it started correctly, but there is an issue. When creating or renaming filename with space symbol in it, i.e. creating new text document in Explorer the space becomes %20 and file disappears in Explorer, then after refresh it appears with %20 or with all the name with %[XX] when using non-Latin symbols. I do not understand the difference between running Docker image in single mode and in Pacemaker. The reverse proxy block, it did not change:
location / {
proxy_pass http://172.17.0.2:80/;
proxy_set_header Host $host;
auth_basic "Please login for access";
auth_basic_user_file /mnt/shared/webdav/.passwd.dav;
}
The Pacemaker config:
root@hogwarts:/mnt/shared/webdav# pcs resource config Nginx-docker
Resource: Nginx-docker (class=ocf provider=heartbeat type=docker)
Attributes: image=dgraziotin/nginx-webdav-nononsense:latest mount_points=/mnt/shared/webdav reuse=1 run_opts="-it --rm --mount type=volume,dst=/data,volume-driver=local,volume-opt=type=none,volume-opt=o=bind,volume-opt=device=/mnt/shared/webdav -e PUID=33 -e PGID=33 -e TZ=Europe/Moscow -e CLIENT_MAX_BODY_SIZE=5G"
Operations: monitor interval=30s timeout=30s (Nginx-docker-monitor-interval-30s)
start interval=0s timeout=90s (Nginx-docker-start-interval-0s)
stop interval=0s timeout=90s (Nginx-docker-stop-interval-0s)
The single mode run command:
docker run -it --rm --mount type=volume,dst=/data,volume-driver=local,volume-opt=type=none,volume-opt=o=bind,volume-opt=device=/mnt/shared/webdav -e PUID='33' -e PGID='33' -e TZ='Europe/Moscow' -e CLIENT_MAX_BODY_SIZE='2G' dgraziotin/nginx-webdav-nononsense
Daniel Graziotin, author of Docker image does not use Pacemaker. Google did not help. Thanks in advance.