fix(other): fix image cache (#9289)

This commit is contained in:
Ulf Gebhardt 2026-02-22 17:56:30 +01:00 committed by GitHub
parent 0861dc8f7c
commit c79a5db39e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 0 deletions

View File

@ -43,6 +43,7 @@ export const s3Service = (config: S3Config, prefix: string) => {
Bucket,
Key: s3Location,
ACL: ObjectCannedACL.public_read,
CacheControl: 'public, max-age=604800',
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
ContentType: mimetype,
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-call

View File

@ -23,6 +23,8 @@ spec:
env:
- name: S3_FORCE_PATH_STYLE
value: "1"
- name: IMAGOR_CACHE_HEADER_TTL
value: "168h"
envFrom:
- secretRef:
name: {{ .Release.Name }}-imagor-secret-env

View File

@ -90,6 +90,7 @@ services:
S3_STORAGE_BUCKET: ocelot # enable S3 storage by specifying bucket
S3_RESULT_STORAGE_BUCKET: ocelot # enable S3 result storage by specifying bucket
HTTP_LOADER_BASE_URL: http://minio:9000
IMAGOR_CACHE_HEADER_TTL: 168h # 7 days
ui:
image: ghcr.io/ocelot-social-community/ocelot-social/ui:local-development