marten-s3 0.1.0

🔐 S3 file storage backend for the Marten framework

Marten S3

GitHub Release Marten Turbo Specs QA

Marten S3 provides a file store implementation to interact with S3 storages

Installation

Simply add the following entry to your project's shard.yml:

dependencies:
  marten_s3:
    github: martenframework/marten-s3

And run shards install afterward.

First, add the following requirement to your project's src/project.cr file:

require "marten_s3"

Afterwards add it to your project applications

config.installed_apps = [
  # …
  MartenS3::App
]

Finally you can configure the storage

config.media_files.storage = MartenS3::Store.new(
  region: "your-region",
  bucket: "bucket-name",
  access_key: "s3_access_key",
  secret_key: "s3_secret_key",
  endpoint: "custom_endpoint", # optional – required only for non-AWS S3-compatible services
  force_path_style: true, # required for most S3-compatible providers (e.g. MinIO, Wasabi); not needed for AWS
)
Repository

marten-s3

Owner
Statistic
  • 2
  • 0
  • 3
  • 0
  • 4
  • about 5 hours ago
  • April 8, 2025
License

MIT License

Links
Synced at

Wed, 16 Apr 2025 12:28:49 GMT

Languages