Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch config in use with HTTP call. #3437

Open
AndyIbanez opened this issue Aug 13, 2019 · 2 comments

Comments

@AndyIbanez
Copy link

commented Aug 13, 2019

What is your current rclone version (output from rclone version)?

rclone v1.48.0
- os/arch: darwin/amd64
- go version: go1.12.6

What problem are you are trying to solve?

I want to host rclone in a server I do not control (somewhere like DigitalOcean) because I want to build an app that consumes it's JSON API. It's the only way I can think of to write an iOS App that supports rclone in any capacity.

I do no want to start the rcd service with my unencrypted config file for security reasons. So having the option to run it with an empty rclone config file and then switch it to the actual config when needed would be ideal.

We talked about it here.

How do you think rclone should be changed to solve that?

rcd should expose a REST API that allows us to change the config file. Something like POST config/file. It should of course also support encrypted config files, so maybe a way to pass it both the config file name and an optional password would be ideal.

@ncw ncw added the enhancement label Aug 15, 2019

@ncw ncw added this to the Help Wanted milestone Aug 15, 2019

@ncw

This comment has been minimized.

Copy link
Collaborator

commented Aug 15, 2019

I think this should be reasonably straight forward...

Do you fancy having a go? If so I can talk you through it.

@AndyIbanez

This comment has been minimized.

Copy link
Author

commented Aug 16, 2019

Unfortunately I'm not familiar with Go yet to try using it in an open source project. Sorry 😔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.