-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Environment variables for paths used #337
Comments
Seconding this, this is something I also need. |
You should be able to already do this using the docker-compose.yml or am I wrong? Just change the mounts like this:
|
I can't find a particular official source on why things are this way, but root level mounts like From https://trash-guides.info/Downloaders/qBittorrent/Basic-Setup/
And some other reading I could find on the matter: |
Unfortunately, it's a bit deeper than just allowing the paths to be customised. File and folder moves are currently done by opening the source file, creating a destination file and writing the source file into it: ganymede/internal/utils/file.go Lines 68 to 91 in 4825322
A "move" operation is never invoked, it's all copy delete. I can't code, but to help, the temporary directories files are explicitly coded to be in Once the directories are able to be customised, the move function shown would need to be changed to use |
I initially opted to not use |
You might want to keep the current move function as a fallback. It seems that since Another idea is to call the |
This will be possible in v3. See #474 for more information and instructions to beta test if you want to. |
Confirming this works (with HLS and instant moves) in the v3 beta! |
Glad to hear it's working better! For now I've updated the paths to be the new default ( |
I've seen the paths to the work directories like
/tmp
or/vods
are hardcoded. I would love for them to be changed with environment variables. In my case, I have a huge performance hit when the download of a big VOD is done and need to be moved, because it's moving files between two volumes, it copies the file when moving instead of just a move operation.I would like to put both the temp working directory and the vods directory in a same parent directory that I would then mount, instead of mounting the
/tmp
and/vods
separately. (I mounted the/tmp
because I'm using Docker with WSL, and it was increasing the WSL virtual drive by a huge amount.)In my case, I would like to do something like this:
GANYMEDE_TEMP_DIR=/data/.tmp
GANYMEDE_VODS_DIR=/data/vods
and then mount the
/data
path.The text was updated successfully, but these errors were encountered: