Hi,
I managed to create a Webdav server thanks to your discussion and to the nginx webdav documentation
- I created a file named webdav.conf in /etc/nginx/conf.d/mon-domain.tld.d
rewrite ^/webdav$ /webdav/ permanent;
location /webdav/ {
root /var/www;
client_body_temp_path /var/www/webdav_client_temp;
dav_methods PUT DELETE MKCOL COPY MOVE;
create_full_put_path on;
dav_access group:rw all:r;
# Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;
}
- Then i created directories mentionned in this webavconf,
mkdir /var/www/webdav
mkdir /var/www/webdav_client_temp
chmod 777 /var/www/webdav
chmod 777 /var/www/webdav_client_temp
Of course, these chmod are not satisfying, they should be restricted to yunohost users
- Then i edited the ssowat config to allow the connexion
it is in /etc/ssowat/conf.json
in "permissions":
, i added
"webdav.main": {
"auth_header": true,
"label": "Webdav",
"public": true,
"show_tile": true,
"uris": [
"mon-domain.tld/webdav"
],
"users": [
"utilisateur1",
"uilisateur2" (etc)
]
}
I restarted the nginx service
It works
I hope this can help
Maybe it would be convenient to transform this in a full Yunohost application.
Can somebody help?