Skip to content

Commit

Permalink
Add missing supported S3 values
Browse files Browse the repository at this point in the history
Signed-off-by: jessebot <[email protected]>
  • Loading branch information
jessebot committed Jul 29, 2024
1 parent ddc5afc commit 6bfbed6
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/nextcloud/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: nextcloud
version: 5.4.0
version: 5.5.0
appVersion: 29.0.4
description: A file sharing server that puts the control and security of your own data back into your hands.
keywords:
Expand Down
9 changes: 8 additions & 1 deletion charts/nextcloud/files/defaultConfigs/s3.config.php.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,14 @@ if (getenv('OBJECTSTORE_S3_BUCKET')) {
// required for some non Amazon S3 implementations
'use_path_style' => $use_path == true && strtolower($use_path) !== 'false',
// required for older protocol versions
'legacy_auth' => $use_legacyauth == true && strtolower($use_legacyauth) !== 'false'
'legacy_auth' => $use_legacyauth == true && strtolower($use_legacyauth) !== 'false',
'concurrency' => getenv('OBJECTSTORE_S3_CONCURRENCY') ?: 5,
'proxy' => getenv('OBJECTSTORE_S3_PROXY') ?: false,
'timeout' => getenv('OBJECTSTORE_S3_TIMEOUT') ?: 15,
'uploadPartSize' => getenv('OBJECTSTORE_S3_UPLOADPARTSIZE') ?: 524288000,
'putSizeLimit' => getenv('OBJECTSTORE_S3_PUTSIZELIMIT') ?: 104857600,
'version' => getenv('OBJECTSTORE_S3_VERSION') ?: "latest",
'verify_bucket_exists' => getenv('OBJECTSTORE_S3_VERIFY_BUCKET_EXISTS') ?: true
)
)
);
Expand Down
18 changes: 17 additions & 1 deletion charts/nextcloud/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,24 @@ S3 as primary object store env vars
value: {{ .Values.nextcloud.objectStore.s3.usePathStyle | quote }}
{{- with .Values.nextcloud.objectStore.s3.legacyAuth }}
- name: OBJECTSTORE_S3_LEGACYAUTH
value: {{ . }}
value: {{ . | quote }}
{{- end }}
- name: OBJECTSTORE_S3_CONCURRENCY
value: {{ .Values.nextcloud.objectStore.s3.concurrency | quote }}
{{- with .Values.nextcloud.objectStore.s3.proxy }}
- name: OBJECTSTORE_S3_PROXY
value: {{ . | quote }}
{{- end }}
- name: OBJECTSTORE_S3_TIMEOUT
value: {{ .Values.nextcloud.objectStore.s3.timeout | quote }}
- name: OBJECTSTORE_S3_UPLOADPARTSIZE
value: {{ .Values.nextcloud.objectStore.s3.uploadPartSize | quote }}
- name: OBJECTSTORE_S3_PUTSIZELIMIT
value: {{ .Values.nextcloud.objectStore.s3.putSizeLimit | quote }}
- name: OBJECTSTORE_S3_VERSION
value: {{ .Values.nextcloud.objectStore.s3.version | quote }}
- name: OBJECTSTORE_S3_VERIFY_BUCKET_EXISTS
value: {{ . | quote }}
- name: OBJECTSTORE_S3_AUTOCREATE
value: {{ .Values.nextcloud.objectStore.s3.autoCreate | quote }}
- name: OBJECTSTORE_S3_REGION
Expand Down
10 changes: 10 additions & 0 deletions charts/nextcloud/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,16 @@ nextcloud:
storageClass: "STANDARD"
# server side encryption key. learn more: https://docs.nextcloud.com/server/latest/admin_manual/configuration_files/primary_storage.html#s3-sse-c-encryption-support
sse_c_key: ""
# defines the maximum number of concurrent multipart uploads
concurrency: 5
proxy: false
timout: 15
uploadPartSize: 524288000
putSizeLimit: 104857600
version: "latest"
# Setting this to false after confirming the bucket has been created may provide a performance benefit,
# but may not be possible in multibucket scenarios.
verify_bucket_exists: true
# use an existingSecret for S3 credentials. If set, we ignore the following under nextcloud.objectStore.s3
# endpoint, accessKey, secretKey
existingSecret: ""
Expand Down

0 comments on commit 6bfbed6

Please sign in to comment.