Is it possible to change where files are hosted to another volume?
-
Happy New Year all!
I've got a question about moving where Surfer app files are stored.
Context
(This Cloudron is a home hosted instance. App data directory is on the same disk as Cloudron OS)I want to host some large files (e.g. +4GB operating system images) with the Surfer app. The files are too large to host in the Data Directory (Default location
/app/data/publicon the same physical disk as the machine OS).I've added an external Mounts (a large USB disk I use for files) -
/media/10tbfilestorage. The surfer app has RW access.I can't see a way or a config file to change the storage directory to the 10TB storage. I've checked the app documentation but can't see a way.
What happens now
When I upload files to the Surfer app, they're uploaded to the default location/app/data/public.What I want to happen
When I upload files to the Surfer app, they're uploaded to the USB disk mount.Is it possible to move that file storage location? Or do I need to move the whole Data Directory from the
/appdata/publiclocation to the/media/10tbfilestorage/location?Thanks.
-
N nebulon marked this topic as a question on
-
Surfer only has one data root, which is set to
/app/data/publicwithin the app on Cloudron. To serve up files from other volumes/disks you can just change the data directory of the whole app https://docs.cloudron.io/apps/#data-directory@nebulon said in Is it possible to change where files are hosted to another volume?:
Surfer only has one data root, which is set to
/app/data/publicwithin the app on Cloudron. To serve up files from other volumes/disks you can just change the data directory of the whole app https://docs.cloudron.io/apps/#data-directoryHi @nebulon and that then moves the app config files to the external mount (in my case the USB disk). Right?
-
J joseph has marked this topic as solved on
-
E ei8fdb has marked this topic as solved on
-
Yes also the config file, but surfer really only has a small json file as config, the rest is just the files it serves up from
public/.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login