feat: Add s3-compatible plugin for the file module (#7143)

This commit is contained in:
Stevche Radevski
2024-04-25 09:06:47 +02:00
committed by GitHub
parent abf1283ab6
commit f341265f42
18 changed files with 1599 additions and 4 deletions
+1
View File
@@ -2,3 +2,4 @@ export * from "./common"
export * from "./mutations"
export * from "./service"
export * from "./provider"
export * from "./providers"
@@ -0,0 +1,2 @@
export * from "./s3"
export * from "./local"
@@ -0,0 +1,4 @@
export interface LocalFileServiceOptions {
upload_dir?: string
backend_url?: string
}
+12
View File
@@ -0,0 +1,12 @@
export interface S3FileServiceOptions {
file_url: string
access_key_id: string
secret_access_key: string
region: string
bucket: string
prefix?: string
endpoint?: string
cache_control?: string
download_file_duration?: number
additional_client_config?: Record<string, any>
}