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,
|
||||
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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user