Can I set up Nextcloud to upload and download directly from MinIO S3?

I have a Nextcloud instance hosted on a separate server, and I want to configure it to use MinIO S3 as the primary storage. My Nextcloud has low upload and download speeds, while the MinIO S3 setup offers much better performance, so I’m hoping to improve speed by using S3. I need help configuring Nextcloud to use it directly for storage. Any advice or steps on how to do this?

follow official docs: Configuring Object Storage as Primary Storage — Nextcloud latest Administration Manual latest documentation

But in general object storage is slower than local storage…