Differences
This shows you the differences between the selected revisions of the page.
| guide_cloudflare 2023-09-18 | guide_cloudflare 2026-06-23 (current) | ||
| Line 1: | Line 1: | ||
| ====== Connecting securely to Cloudflare R2 storage/bucket with S3 ====== | ====== Connecting securely to Cloudflare R2 storage/bucket with S3 ====== | ||
| - | With WinSCP you can easily upload and manage files on your [[https://www.cloudflare.com/developer-platform/r2/|Cloudflare R2 storage/bucket]] using [[s3|S3 protocol]]. | + | With WinSCP you can easily upload and manage files on your [[https://www.cloudflare.com/products/r2/|Cloudflare R2 storage/bucket]] using [[s3|S3 protocol]]. |
| Before starting you should [[guide_install|have WinSCP installed]]. | Before starting you should [[guide_install|have WinSCP installed]]. | ||
| Line 9: | Line 9: | ||
| * If you do not have an R2 API Token yet, select //Manage R2 API Tokens// and click //Create API token//. After creating the token, note the //Access Key ID// and //Secret Access Key//. | * If you do not have an R2 API Token yet, select //Manage R2 API Tokens// and click //Create API token//. After creating the token, note the //Access Key ID// and //Secret Access Key//. | ||
| - | * Back on the //R2// panel, select your bucket and go to //Settings// page. Find //%%S3 API%%// URL. It contains your S3 API hostname. It has a format like ''your-account-id.r2.cloudflarestorage.com''. | + | * Back on the //R2// panel, select your bucket and go to //Settings// page. Find //%%S3 API%%// URL. It contains your S3 API hostname. It has a format like ''your-account-id.r2.cloudflarestorage.com'' (in other words, drop the leading ''%%https://%%'' and trailing ''/bucket'' from the URL). |
| Start WinSCP. [[ui_login|Login dialog]] will appear. On the dialog: | Start WinSCP. [[ui_login|Login dialog]] will appear. On the dialog: | ||
| * Make sure //New site// node is selected. | * Make sure //New site// node is selected. | ||
| * On the //New site node//, select //Amazon %%S3%%// protocol. | * On the //New site node//, select //Amazon %%S3%%// protocol. | ||
| - | * Enter your S3 API hostname to the //Host name// box. | + | * Enter your S3 API hostname to the //Hostname// box. |
| * Enter your //Access key ID// and //Secret access key//. | * Enter your //Access key ID// and //Secret access key//. | ||
| * Click //Advanced// and go to //Environment > Directories// page. There, enter your bucket name preceded by a slash (''/bucket'') into the //Remote directory// box. Submit the Advanced Site Setting dialog. | * Click //Advanced// and go to //Environment > Directories// page. There, enter your bucket name preceded by a slash (''/bucket'') into the //Remote directory// box. Submit the Advanced Site Setting dialog. | ||