I would like to know if I can serve a remote over webdav and define the user/pass via environment variables instead of command line flags or htpasswd files.
I know config can be set entirely via environment variables (Documentation) and I'm hoping these flags can be as well.
rclone works and authentication works well with command line flags and htpasswd.
Run the command 'rclone version' and share the full output of the command.
rclone v1.65.2
os/version: debian 12.4 (64 bit)
os/kernel: 6.6.32-production+truenas (x86_64)
os/type: linux
os/arch: amd64
go/version: go1.19.8
go/linking: dynamic
go/tags: none
Which cloud storage system are you using? (eg Google Drive)
OneDrive
The command you were trying to run (eg rclone copy /tmp remote:tmp)
rclone serve webdav myonedrive:
Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.
Config is empty as it is set by environment variables.
A log from the command that you were trying to run with the -vv flag
Thanks for the quick response! I've installed the latest version. I tried guessing the environment variables as I could not find them in the documentation. Below are the vars I tried. None appear to be picked up by rclone, and the webdav server is still accessible without authentication.