winofy-backend/.env.example
Ali Asadi 56c07c3678 Seed demo stores/products with a placeholder image key; doc cleanup
- seed_demo_data: every seeded Store.logo/cover_image and Product.image
  now points at a shared placeholder MinIO object_key
  (uploads/c1508b9e-c01f-4892-b24c-c1a949b5b5f5.png) instead of null, so
  demo data exercises the image_url/logo_url/etc. fields end-to-end.
  Note: <field>_url will 404 until that object is actually uploaded to
  the bucket.
- .env.example: drop the redundant MINIO_EXTERNAL_ENDPOINT* lines —
  they already default to MINIO_ENDPOINT/MINIO_USE_HTTPS, and aren't
  read anywhere in this app's actual presign/read path.
- Add MEDIA_INTEGRATION.md: reference doc for the MinIO/presigned-media
  work on this branch (architecture, settings, API shape, existing-data
  caveats, what was verified).
2026-08-18 16:51:19 +03:30

41 lines
1.5 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 is used both for Django's own connection to MinIO and for
# building the presigned URLs returned to clients — leave MINIO_EXTERNAL_ENDPOINT
# unset unless Django reaches MinIO through a different address than clients do
# (e.g. an internal Docker/VPC hostname vs. a public domain).
MINIO_ENDPOINT=localhost:9000
MINIO_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