Swaps default media storage from local FileSystemStorage to MinIO via django-minio-backend, matching the rest of the Winsoo ecosystem (advertising, campaign, wallet). Points at a local MinIO container (added to docker-compose.yml) by default since no shared bucket is provisioned yet. Existing ImageFields pick up the new storage backend automatically — no model changes needed. Verified against a live local MinIO container: bucket auto-creates on first save, object lands under the expected key, URL resolves.
39 lines
1.3 KiB
Text
39 lines
1.3 KiB
Text
SECRET_KEY=change-me
|
|
DEBUG=True
|
|
ALLOWED_HOSTS=winofy-staging.winsoo.ir,localhost,127.0.0.1
|
|
|
|
DB_NAME=winofy_dev
|
|
DB_USER=
|
|
DB_PASSWORD=
|
|
DB_HOST=localhost
|
|
|
|
REDIS_URL=redis://localhost:6379/1
|
|
|
|
CORS_ALLOWED_ORIGINS=
|
|
CSRF_TRUSTED_ORIGINS=
|
|
NEARBY_RADIUS_METERS=5000
|
|
DEFAULT_COMMISSION_PERCENT=4.0
|
|
|
|
# MinIO — object storage for media (product/store images), same pattern as the
|
|
# rest of the Winsoo ecosystem. Defaults point at the local `minio` container
|
|
# from docker-compose.yml. No bucket has been provisioned centrally yet —
|
|
# django-minio-backend will create MINIO_MEDIA_FILES_BUCKET on first save.
|
|
MINIO_ENDPOINT=localhost:9000
|
|
MINIO_USE_HTTPS=False
|
|
MINIO_EXTERNAL_ENDPOINT=localhost:9000
|
|
MINIO_EXTERNAL_ENDPOINT_USE_HTTPS=False
|
|
MINIO_ACCESS_KEY=minioadmin
|
|
MINIO_SECRET_KEY=minioadmin
|
|
MINIO_MEDIA_FILES_BUCKET=winofy-media
|
|
|
|
# OAuth2 provider (Gooyal accounts) — resource-server introspection + this
|
|
# service's own client-credentials grant for outbound calls to Gooyal services.
|
|
OAUTH2_PROVIDER_BASE_PUBLIC_URL=
|
|
OAUTH2_PROVIDER_BASE_PRIVATE_URL=
|
|
OAUTH2_PROVIDER_CLIENT_ID=
|
|
OAUTH2_PROVIDER_CLIENT_SECRET=
|
|
OAUTH2_PROVIDER_SCOPES=
|
|
|
|
# macOS only — not needed on Linux where GDAL is on the system path
|
|
# GDAL_LIBRARY_PATH=/opt/homebrew/lib/libgdal.dylib
|
|
# GEOS_LIBRARY_PATH=/opt/homebrew/lib/libgeos_c.dylib
|