At v7.1.0-rc.1, I can't use Cloudflare R2

Hello.
I updated PeerTube to v7.1.0-rc.1 yesterday, but videos are not stored in S3.
I’m using Cloudflare R2, and when I try to transfer files to S3 locally, I get the message « Object storage is not enabled on this instance. » and cannot send them.
What could be the cause?

Hi,

Can you paste your config file under the object_storage configuration key?

[quote=« Chocobozzz, post:2, topic:25037 »]
object_storage 設定キーの下に設定ファイルを貼り付けることはできますか?
[/引用]

What is object_storage configuration key?
If I can paste, I want to do.

But have you configured Peertube to use S3? You have to do some configuration before you can move files to S3 (configure your credentials, your bucket, …).

This is not related to v7.1.0-rc.1.

The object_storage key is here in the production.yaml file:

(do not copy the access id and the secret key!)

I have it set up like this, but I can’t transfer video files on the server.

static_files:
  # Require and check user authentication when accessing private files (internal/private video files)
  private_files_require_auth: true

object_storage:
  enabled: true

  # Without protocol, will default to HTTPS
  # Your S3 provider must support virtual hosting of buckets as PeerTube doesn't support path style requests
  endpoint: '(endpoint).r2.cloudflarestorage.com' # 's3.amazonaws.com' or 's3.fr-par.scw.cloud' for example

  region: 'auto'

  upload_acl:
    # Set this ACL on each uploaded object of public/unlisted videos
    # Use null if your S3 provider does not support object ACL
    public: 'public-read'
    # Set this ACL on each uploaded object of private/internal videos
    # PeerTube can proxify requests to private objects so your users can access them
    # Use null if your S3 provider does not support object ACL
    private: 'private'

  proxy:
    # If private files (private/internal video files) have a private ACL, users can't access directly the ressource
    # PeerTube can proxify requests between your object storage service and your users
    # If you disable PeerTube proxy, ensure you use your own proxy that is able to access the private files
    # Or you can also set a public ACL for private files in object storage if you don't want to use a proxy
    proxify_private_files: true

  credentials:
    # You can also use AWS_ACCESS_KEY_ID env variable
    access_key_id: '(accesskey)'
    # You can also use AWS_SECRET_ACCESS_KEY env variable
    secret_access_key: '(secret_key)'

  # Maximum amount to upload in one request to object storage
  max_upload_part: 5GB

  # Maximum number of attempts to make a request to object storage
  # Some object storage providers (for instance Backblaze) expects the client to retry upload upon 5xx errors
  # If you're using such a provider then you can increase this value
  max_request_attempts: 3

For some reason the « object_storage » field was commented out earlier, but after uncommenting it it worked.
Sorry for the trouble.