Minio Storage Driver for Masonite
Project description
Project description
What is Minio-Driver? It's an extra storage driver for masonite. It adds support for minio server.
Setup
Install package using pip:
pip install minio-driver
Add provider inside config/providers.py.
from minio_driver.MinioProvider import MinioProvider
PROVIDERS = [
...,
# Application Providers
MinioProvider,
]
Storage Config
Add following configuration inside config/storage.py after "disk": {"location": "storage/uploads"},
"minio": {
"endpoint": env("MINIO_URL", "https://min.io"),
"client": env("MINIO_CLIENT", "AxJz..."),
"secret": env("MINIO_SECRET", "HkZj..."),
"bucket": env("MINIO_BUCKET", "s3bucket"),
},
Add following keys in .env
.
MINIO_CLIENT=
MINIO_SECRET=
MINIO_BUCKET=
MINIO_URL=
Enjoy ;)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
minio_driver-0.0.7.tar.gz
(2.9 kB
view hashes)