Rename MinIO config to S3, switch to Cloudflare R2

- Rename MinioConfig → S3Config, settings.minio → settings.s3
- Update config.example.yaml with R2 endpoint template
- S3 service is now storage-backend agnostic (MinIO, R2, any S3-compatible)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Misaka_Company
2026-05-28 13:43:10 +08:00
parent c9f7f55d81
commit 2d7c8a6f3f
3 changed files with 15 additions and 15 deletions

View File

@@ -1,12 +1,12 @@
# SnapLedger Backend Configuration
# Copy this file to config.yaml and fill in your credentials.
minio:
endpoint: "https://minio.example.com:9000"
public_endpoint: "https://minio-public.example.com"
s3:
endpoint: "https://<account-id>.r2.cloudflarestorage.com"
public_endpoint: ""
bucket: "snapledger"
access_key: "YOUR_MINIO_ACCESS_KEY"
secret_key: "YOUR_MINIO_SECRET_KEY"
access_key: "YOUR_S3_ACCESS_KEY"
secret_key: "YOUR_S3_SECRET_KEY"
postgresql:
host: "localhost"