mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-17 16:50:22 +00:00
- add support for remote uploads - add support for restore using golden-retriever - update examples - #6181 still persists --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Mikael Finstad <finstaden@gmail.com>
14 lines
534 B
TypeScript
14 lines
534 B
TypeScript
export const accessKeyId = 'stsuser'
|
|
export const secretAccessKey = 'stspassword123'
|
|
|
|
export function getConfig(env: Record<string, string | undefined>) {
|
|
const config = env['VITE_MINIO_CONFIG']
|
|
if (!config) {
|
|
return undefined
|
|
}
|
|
const [rootAccessKeyId, rootSecretAccessKey, endpoint, region] =
|
|
config.split(',')
|
|
// Use stsuser credentials for all tests (readwrite policy is sufficient)
|
|
// Root credentials are kept for Docker container startup
|
|
return { endpoint, region, rootAccessKeyId, rootSecretAccessKey }
|
|
}
|