mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2026-03-01 12:44:37 +00:00
fix(other): fix image cache (#9289)
This commit is contained in:
parent
0861dc8f7c
commit
c79a5db39e
@ -43,6 +43,7 @@ export const s3Service = (config: S3Config, prefix: string) => {
|
|||||||
Bucket,
|
Bucket,
|
||||||
Key: s3Location,
|
Key: s3Location,
|
||||||
ACL: ObjectCannedACL.public_read,
|
ACL: ObjectCannedACL.public_read,
|
||||||
|
CacheControl: 'public, max-age=604800',
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
||||||
ContentType: mimetype,
|
ContentType: mimetype,
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-call
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-call
|
||||||
|
|||||||
@ -23,6 +23,8 @@ spec:
|
|||||||
env:
|
env:
|
||||||
- name: S3_FORCE_PATH_STYLE
|
- name: S3_FORCE_PATH_STYLE
|
||||||
value: "1"
|
value: "1"
|
||||||
|
- name: IMAGOR_CACHE_HEADER_TTL
|
||||||
|
value: "168h"
|
||||||
envFrom:
|
envFrom:
|
||||||
- secretRef:
|
- secretRef:
|
||||||
name: {{ .Release.Name }}-imagor-secret-env
|
name: {{ .Release.Name }}-imagor-secret-env
|
||||||
|
|||||||
@ -90,6 +90,7 @@ services:
|
|||||||
S3_STORAGE_BUCKET: ocelot # enable S3 storage by specifying bucket
|
S3_STORAGE_BUCKET: ocelot # enable S3 storage by specifying bucket
|
||||||
S3_RESULT_STORAGE_BUCKET: ocelot # enable S3 result storage by specifying bucket
|
S3_RESULT_STORAGE_BUCKET: ocelot # enable S3 result storage by specifying bucket
|
||||||
HTTP_LOADER_BASE_URL: http://minio:9000
|
HTTP_LOADER_BASE_URL: http://minio:9000
|
||||||
|
IMAGOR_CACHE_HEADER_TTL: 168h # 7 days
|
||||||
|
|
||||||
ui:
|
ui:
|
||||||
image: ghcr.io/ocelot-social-community/ocelot-social/ui:local-development
|
image: ghcr.io/ocelot-social-community/ocelot-social/ui:local-development
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user