Following on from a discussion in this thread: https://discussion.dreamhost.com/thread-135864
[quote]ownCloud seems to work well so far but the only problem is that you can’t seem to mount the dreamobjects bucket to the root of each user’s directory. It has to mount to a subfolder otherwise there are issues uploading and accessing the files it seems. If anyone has solid success with ownCloud and DreamObjects, I’d greatly appreciate the assistance.
Edit 1: I’ve done some digging and it seems to work ok using Swift. Obviously S3 doesn’t work because you can’t change the hostname in ownCloud (without a fair bit of hassle).
You can’t set the root directory in the mount.php config file like so:
’/$user/files/’ => array ( ‘class’ => ‘OC_Filestorage_SWIFT’, ‘options’ => array ( ‘host’ => ‘objects.dreamhost.com/auth’, ‘user’ => ‘user:subuser’, ‘token’ => ‘token’, ‘root’ => ‘/bucketname’, ‘secure’ => ‘true’, ),),
The only problem with this setup is that the files all go into the same bucket. Each user can only see their own files, but if you log in to the bucket using another application (cyberduck, etc.) all files from all users are visible. This isn’t really an issue in terms of security, but it’s more an issue of tidiness. The other problem is that instead of creating folders in a bucket, for each new folder, ownCloud seems to create a new bucket with backslashes in the name (e.g. bucket1\subfolder). Not sure if this is an issue with the way ownCloud handles new folders or if it is something to do with the DreamObjects Swift API.
Edit 2: So I’ve found that you can use the $user variable in the mount.php config to define new buckets. See below:
’/$user/files/’ => array ( ‘class’ => ‘OC_Filestorage_SWIFT’, ‘options’ => array ( ‘host’ => ‘objects.dreamhost.com/auth’, ‘user’ => ‘user:subuser’, ‘token’ => ‘token’, ‘root’ => ‘/bucketname/$user/’, ‘secure’ => ‘true’, ),),[/quote]