Files

30 lines
1007 B
Plaintext
Raw Permalink Normal View History

2026-02-17 17:27:26 +01:00
# Cloudflare R2 Configuration Example
#
# Cloudflare R2 is S3-compatible storage with zero egress fees.
#
# Setup Instructions:
# 1. Create a Cloudflare account and enable R2
# 2. Create an R2 bucket in the Cloudflare dashboard
# 3. Generate API tokens from R2 > Manage R2 API Tokens
# 4. Copy your Account ID from the R2 dashboard
# 5. Set the following GitHub secrets in your repository:
# - R2_ACCOUNT_ID: Your Cloudflare Account ID
# - R2_ACCESS_KEY_ID: Your R2 Access Key ID
# - R2_SECRET_ACCESS_KEY: Your R2 Secret Access Key
# - R2_BUCKET_NAME: Your R2 bucket name
#
# The endpoint format is: https://<account-id>.r2.cloudflarestorage.com
[cloudflare-r2]
type = s3
provider = Cloudflare
# Access credentials - use GitHub secrets
access_key_id = ${R2_ACCESS_KEY_ID}
secret_access_key = ${R2_SECRET_ACCESS_KEY}
# Endpoint format
endpoint = https://${R2_ACCOUNT_ID}.r2.cloudflarestorage.com
# Region is not used for R2 but some tools require it
region = auto
# ACL settings
acl = private