From fee8f21ce13578786269a928f064ab96afc07b0c Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Fri, 21 Aug 2020 16:14:02 +0100 Subject: [PATCH] pcloud: Add example hostnames to configurator and more docs - Fixes #4493 When using `rclone authorize` the hostname doesn't get set in the config file. This commit allows it to be set in the configurator and gives the user a hint that it needs setting. --- backend/pcloud/pcloud.go | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/backend/pcloud/pcloud.go b/backend/pcloud/pcloud.go index d46b1ea71..9254b5a69 100644 --- a/backend/pcloud/pcloud.go +++ b/backend/pcloud/pcloud.go @@ -122,9 +122,19 @@ func init() { Name: "hostname", Help: `Hostname to connect to. -This is normally set when rclone initially does the oauth connection.`, +This is normally set when rclone initially does the oauth connection, +however you will need to set it by hand if you are using remote config +with rclone authorize. +`, Default: defaultHostname, Advanced: true, + Examples: []fs.OptionExample{{ + Value: defaultHostname, + Help: "Original/US region", + }, { + Value: "eapi.pcloud.com", + Help: "EU region", + }}, }}...), }) }