mirror of
https://github.com/rclone/rclone.git
synced 2024-12-23 23:49:15 +01:00
23 lines
483 B
Plaintext
23 lines
483 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
set -e
|
||
|
|
||
|
NAME=rclone-serve-s3
|
||
|
ACCESS_KEY_ID=rclone
|
||
|
SECRET_ACCESS_KEY=JoltRogueVerde5
|
||
|
IP=127.0.0.1
|
||
|
PORT=28624
|
||
|
|
||
|
start() {
|
||
|
run rclone serve s3 --auth-key ${ACCESS_KEY_ID},${SECRET_ACCESS_KEY} --addr ${IP}:${PORT} ${DATADIR}
|
||
|
|
||
|
echo type=s3
|
||
|
echo provider=Rclone
|
||
|
echo endpoint=http://${IP}:${PORT}/
|
||
|
echo access_key_id=${ACCESS_KEY_ID}
|
||
|
echo secret_access_key=${SECRET_ACCESS_KEY}
|
||
|
echo _connect=${IP}:${PORT}
|
||
|
}
|
||
|
|
||
|
. $(dirname "$0")/rclone-serve.bash
|