feat: Add s3-compatible plugin for the file module (#7143)
This commit is contained in:
@@ -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
|
||||
}
|
||||
@@ -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>
|
||||
}
|
||||
Reference in New Issue
Block a user