fix: append port to s3 endpoint (#8601)
Some checks are pending
CI / build (push) Waiting to run
CI / svelte-check (push) Blocked by required conditions
CI / formatting (push) Blocked by required conditions
CI / test (push) Blocked by required conditions
CI / uitest (push) Waiting to run
CI / uitest-pg (push) Waiting to run
CI / uitest-qms (push) Waiting to run
CI / uitest-workspaces (push) Waiting to run
CI / docker-build (push) Blocked by required conditions
CI / dist-build (push) Blocked by required conditions

Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
Alexander Onnikov 2025-04-17 13:12:39 +07:00 committed by GitHub
parent 9e916670e1
commit 52daac6f57
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -71,8 +71,9 @@ export class S3Service implements StorageAdapter {
expireTime: number
client: S3
constructor (readonly opt: S3Config) {
const endpoint = Number.isInteger(opt.port) ? `${opt.endpoint}:${opt.port}` : opt.endpoint
this.client = new S3({
endpoint: opt.endpoint,
endpoint,
credentials: {
accessKeyId: opt.accessKey,
secretAccessKey: opt.secretKey