Skip to content

Commit 4b7c144

Browse files
fix delegatedStorage path
1 parent 00f6d48 commit 4b7c144

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

opensource/templates/deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ spec:
5353
value: "{{ default "" .Values.mediaApi.apiPrefix }}"
5454
- name: USE_STRIPMETADATA
5555
value: "{{ default "" .Values.mediaApi.useStripMetadata }}"
56+
- name: DELEGATED_STORAGE_PATH
57+
value: "{{ default "" .Values.delegatedStorage.path }}"
5658
- name: DELEGATED_STORAGE_RATE_LIMIT
5759
value: "{{ default "5" .Values.delegatedStorage.rateLimit }}"
5860
- name: DELEGATED_STORAGE_RATE_LIMIT_WINDOW

opensource/values.local.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ delegatedStorage:
3737
readinessCheck: '/minio/health/live'
3838
accessToken: 'NinjaDesIles'
3939
storageMethod: 'S3'
40+
path: ''
4041

4142
s3:
4243
port: '9000'

opensource/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ delegatedStorage:
3434
readinessCheck: '/minio/health/live'
3535
accessToken: 'NinjaDesIles'
3636
storageMethod: 'S3'
37+
path: ''
3738

3839
s3:
3940
port: '9000'

src/api/delegated-storage/distant-backend/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ const generateOptions = (method, contentTypeHeaders, file = null) => {
3939

4040
const generateUrl = (filepath, version, mimetype, method) => {
4141
if (version || mimetype) {
42-
return `${process.env.DELEGATED_STORAGE_HOST}${process.env[`DELEGATED_STORAGE_${method}_PATH`]}${filepath}?version=${version}&mimetype=${mimetype}`;
42+
return `${process.env.DELEGATED_STORAGE_HOST}${process.env[`DELEGATED_STORAGE_PATH`]}${filepath}?version=${version}&mimetype=${mimetype}`;
4343
}
44-
return `${process.env.DELEGATED_STORAGE_HOST}${process.env[`DELEGATED_STORAGE_${method}_PATH`]}${filepath}`;
44+
return `${process.env.DELEGATED_STORAGE_HOST}${process.env[`DELEGATED_STORAGE_PATH`]}${filepath}`;
4545
};
4646

4747
export const getLastDump = async () => {

0 commit comments

Comments
 (0)