The personal finance app for everyone
Support for Cloudflare R2
Josh Pigford78b0674052d2
diff --git a/.env.example b/.env.exampleindex 5391e0a4..aef24fa9 100644--- a/.env.example+++ b/.env.example@@ -86,3 +86,11 @@ GITHUB_REPO_BRANCH=main# S3_SECRET_ACCESS_KEY=# S3_REGION= # defaults to `us-east-1` if not set# S3_BUCKET=+#+# Cloudflare R2+# =============+# ACTIVE_STORAGE_SERVICE=cloudflare+# CLOUDFLARE_ACCOUNT_ID=+# CLOUDFLARE_ACCESS_KEY_ID=+# CLOUDFLARE_SECRET_ACCESS_KEY=+# CLOUDFLARE_BUCKET=\ No newline at end of filediff --git a/config/storage.yml b/config/storage.ymlindex d14dd1c1..5b6fdc3f 100644--- a/config/storage.yml+++ b/config/storage.yml@@ -13,6 +13,14 @@ amazon:region: <%= ENV["S3_REGION"] || "us-east-1" %>bucket: <%= ENV["S3_BUCKET"] %>+cloudflare:+ service: S3+ endpoint: https://<%= ENV['CLOUDFLARE_ACCOUNT_ID'] %>.r2.cloudflarestorage.com+ access_key_id: <%= ENV['CLOUDFLARE_ACCESS_KEY_ID'] %>+ secret_access_key: <%= ENV['CLOUDFLARE_SECRET_ACCESS_KEY'] %>+ region: auto+ bucket: <%= ENV['CLOUDFLARE_BUCKET'] %>+# Removed in #702. Uncomment, add gems, update .env.example to enable.#google:# service: GCS