Add Google Cloud Storage Support for Active Storage (#1523)

* feat: add gcs for activestorage service provider

* docs: add gcs keys to .env.example
This commit is contained in:
Ellion Blessan
2026-04-20 03:05:15 +07:00
committed by GitHub
parent 5339794c50
commit 9a8b3be0c4
5 changed files with 80 additions and 3 deletions

View File

@@ -145,7 +145,7 @@ POSTHOG_HOST=
# Active Storage Configuration - responsible for storing file uploads
# ======================================================================================================
#
# * Defaults to disk storage but you can also use Amazon S3 or Cloudflare R2
# * Defaults to disk storage but you can also use Amazon S3, Cloudflare R2, or Google Cloud Storage
# * Set the appropriate environment variables to use these services.
# * Ensure libvips is installed on your system for image processing - https://github.com/libvips/libvips
#
@@ -174,3 +174,11 @@ POSTHOG_HOST=
# GENERIC_S3_BUCKET=
# GENERIC_S3_ENDPOINT=
# GENERIC_S3_FORCE_PATH_STYLE= <- defaults to false
#
# Google Cloud Storage
# ====================
# ACTIVE_STORAGE_SERVICE=google <- Enables Google Cloud Storage
# GCS_PROJECT=
# GCS_BUCKET=
# GCS_KEYFILE_JSON= <- JSON content of service account key (preferred)
# GCS_KEYFILE= <- path to service account JSON key file