From 227541d407681f7ffd4c84ebf66ad63dcffd8022 Mon Sep 17 00:00:00 2001 From: Michael Hollister Date: Tue, 12 Mar 2024 00:03:59 -0500 Subject: [PATCH] Added back storageClass config option --- .../templates/media-repo/media-repo.yaml.j2 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/roles/custom/matrix-media-repo/templates/media-repo/media-repo.yaml.j2 b/roles/custom/matrix-media-repo/templates/media-repo/media-repo.yaml.j2 index d0543ebe6..ee7d151b6 100644 --- a/roles/custom/matrix-media-repo/templates/media-repo/media-repo.yaml.j2 +++ b/roles/custom/matrix-media-repo/templates/media-repo/media-repo.yaml.j2 @@ -229,6 +229,13 @@ datastores: # some providers will need this (like Scaleway). Uncomment to use. #region: "sfo2" {% endif %} +{% if matrix_media_repo_datastore_s3_opts_storage_class is defined %} + storageClass: {{ matrix_media_repo_datastore_s3_opts_storage_class | to_json }} +{% else %} + # An optional storage class for tuning how the media is stored at s3. + # See https://aws.amazon.com/s3/storage-classes/ for details; uncomment to use. + #storageClass: STANDARD +{% endif %} {% if matrix_media_repo_datastore_s3_opts_public_base_url is defined %} publicBaseUrl: {{ matrix_media_repo_datastore_s3_opts_public_base_url | to_json }} {% else %}