hello
rclone version 1.61.1
i am currently using the command to share a folder over http/webdav
.../rclone --verbose serve webdav --addr :2080 --read-only --include 'data/**' --include 'backup/**' /
i would like to move this into an auth-proxy script but i seem unable to figure out how to specify the filter/inlcude ?
.../rclone --verbose serve webdav --addr :2080 --read-only --auth-proxy /path/to/auth.sh
with auth.sh
#!/usr/bin/env bash
cat <<__EOF__
{ "type": "local", "_root": "/", "include": ["data/**","backup/**"] }
__EOF__
thanks in advance.
ncw
(Nick Craig-Wood)
January 17, 2023, 10:40am
2
You can leave the filters on the command line and they will apply to all proxied servers.
The auth proxy isn't capable of setting filters at the moment so it is all or nothing for now.
yes, i have already discovered that setting filters on the commandline works
in the end the auth.sh script should generate _root and include dirs dynamically from ldap queries,
so setting filters on the commandline isnt an option.
ncw
(Nick Craig-Wood)
January 17, 2023, 4:52pm
4
This is of course possible... Is it something your company might sponsor me to implement?
system
(system)
Closed
February 16, 2023, 4:53pm
5
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.