Configuration

In order to make Tryton’s filestore use S3 object storage the class option must be set to tryton_filestore_minio.FileStoreMinIO in the [database] section of the configuration file.

The normal bucket and connection settings must be configured in the [minio] section of the configuration file.

If the prefix used with the filestore contains a colon (:), the part before the colon is used as the service name, and the part after the colon is used as the prefix. For these, the configuration settings for the service are taken from the [minio_<service_name>] section of the configuration file.

endpoint

The hostname for the S3 service to use. The port can also be specified by including it at the end after a colon (:).

The default value is: s3.amazonaws.com

secure

Indicates whether to connect using a secure (TLS) connection or not.

The default value is: True

ca_certs

This is the path to the file that contains the CA certificate, or CA certificate bundle. When specified and using a secure connection only requests to servers that can be verified by the CA certificate or bundle will succeed.

This value is optional.

access_key

The access key (sometimes also called the user id) for the account that Tryton should use when connecting to the S3 service.

If not specified connections will be attempted anonymously.

secret_key

The secret key (sometimes also referred to as the password) for the account that Tryton should use when connecting to the S3 service.

region

The name of the region where the buckets can be found in the S3 service.

This value is optional.

bucket

The name of the bucket that Tryton should use to store the files in.

The default value is: tryton