mirror of
https://github.com/ViViDboarder/hassio-addon-rclone.git
synced 2024-12-23 12:07:44 +00:00
20 lines
492 B
Plaintext
20 lines
492 B
Plaintext
|
#! /usr/bin/with-contenv bashio
|
||
|
|
||
|
bashio::log.info "Starting rclone web..."
|
||
|
|
||
|
# TODO: Something with UN and PASS
|
||
|
# Maybe switch to --rc-no-auth and use proxy
|
||
|
username=$(bashio::config 'credentials.username')
|
||
|
password=$(bashio::config 'credentials.password')
|
||
|
|
||
|
# TODO: Add cert paths here if ssl is true
|
||
|
|
||
|
exec rclone rcd \
|
||
|
--rc-web-gui \
|
||
|
--rc-serve \
|
||
|
--rc-addr :5572 \
|
||
|
--rc-user "$username" \
|
||
|
--rc-pass "$password" \
|
||
|
--rc-web-gui-update \
|
||
|
--rc-web-gui-no-open-browser
|