I've made a script that will auto-update the url of the HTTP remote directly from rclone.conf file. But the issue is it doesn't reflect the changes on the mounts, still using the old url. I need to restart the rclone mount in order to make the changes applied.
This is how it works... parameters from rclone config are read when you start you mount. So editing rclone config later (which is what your script is doing) does not have any effect on already running mount.
I would try to approach it with some sort of proxy redirecting traffic dynamically and your script changing redirection parameters. As you use HTTP it should not be so difficult.
Then rclone will always point to proxy fixed IP/path but traffic will flow to IP/path proxy decides.
The option keys are named as they are in the config file.
This rebuilds the connection to the s3 backend when it is called with
the new parameters. Only new parameters need be passed as the values
will default to those currently in use.
It doesn't return anything.
Or we could make an rclone remount remote control either for the VFS or for the mount.