2024-05-24 12:01:58 +02:00
|
|
|
#!/usr/bin/env bash
|
2019-10-04 17:51:07 +02:00
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
NAME=rclone-serve-webdav
|
|
|
|
USER=rclone
|
|
|
|
PASS=PagansSwimExpiry9
|
2020-11-10 19:01:15 +01:00
|
|
|
IP=127.0.0.1
|
|
|
|
PORT=28620
|
2019-10-04 17:51:07 +02:00
|
|
|
|
|
|
|
start() {
|
2020-11-10 19:01:15 +01:00
|
|
|
run rclone serve webdav --user $USER --pass $PASS --addr ${IP}:${PORT} ${DATADIR}
|
2019-10-04 17:51:07 +02:00
|
|
|
|
|
|
|
echo type=webdav
|
2023-11-05 13:37:25 +01:00
|
|
|
echo vendor=rclone
|
2020-11-10 19:01:15 +01:00
|
|
|
echo url=http://${IP}:${PORT}/
|
2019-10-04 17:51:07 +02:00
|
|
|
echo user=$USER
|
|
|
|
echo pass=$(rclone obscure $PASS)
|
2020-11-10 19:01:15 +01:00
|
|
|
echo _connect=${IP}:$PORT
|
2019-10-04 17:51:07 +02:00
|
|
|
}
|
|
|
|
|
2020-11-10 19:01:15 +01:00
|
|
|
. $(dirname "$0")/rclone-serve.bash
|