Closed tikr7 closed 3 months ago
Hi @tikr7
Maybe a naive question, but are the folder permissions correct? Have you tried to upload a file to see if it gets correctly created on the disk (it may be that the permissions are not correct, hence why the folder is not created)?
Hi @tchapi
permissions look good. I did a docker exec and was able to create folders and files under /webdav/homes
with user www-data
.
I also dont see any errors in logs.
Ok. And did you manage to do it via webdav? (either via the web UI of sabre/dav, or via a client)?
How can I use UI of sabre/dev to upload something? Under which port/path is it?
I did it with a WebDAV client and used the url
I also tried with:
I just started from scratch and by accident I made the configs in ../.env
and not in ./env
.
Then it created
:9000/dav/home/TestUser/ (home not homes)
but the public folder was missing:
:9000/dav/public/
The reason was, ./env
(WEBDAV=false
) overwrites ../.env
.
@tchapi WEBDAV=false
+ WEBDAV_HOMES_DIR='/webdav/homes'
leads to a working webdav on home_dir level. Is it maybe a security issue? If somebody wants to deactivate public behavior, it should be done via: WEBDAV_PUBLIC_DIR=
I assume.
I dont know why, but WEBDAV_HOMES_DIR='/webdav/homes'
has no effect within ./env
(I can't see the environment variable in the docker container) and only works in ../.env
which solved my issue finally =)
@tchapi thank you for your help!
I hope my solution helps somebody else in the future.
First of all, thank you for this project! It makes the whole WebDAV administration so much easier and also scalable having multiple users!
My Davis instance is up and running, WebDAV is configured and now I would like to use the WEBDAV_HOMES_DIR feature to separate users data.
I set:
I created a user called "TestUser". After the login, in the UI I do find the public directory under: ip:port/dav/homes
But I cant find the home directory. Where is it? Maybe it is not visible? I thought it would be under: ip:port/dav/homes/TestUser
I am using version v4.4.3
Thanks in advance!