mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-05 03:04:50 +01:00
fix: unable to upload to local object storage (#15040)
This commit is contained in:
parent
a0e91b5882
commit
dd56623cde
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ export class S3Service {
|
||||||
? `${meta.objectStorageUseSSL ? 'https' : 'http'}://${meta.objectStorageEndpoint}`
|
? `${meta.objectStorageUseSSL ? 'https' : 'http'}://${meta.objectStorageEndpoint}`
|
||||||
: `${meta.objectStorageUseSSL ? 'https' : 'http'}://example.net`; // dummy url to select http(s) agent
|
: `${meta.objectStorageUseSSL ? 'https' : 'http'}://example.net`; // dummy url to select http(s) agent
|
||||||
|
|
||||||
const agent = this.httpRequestService.getAgentByUrl(new URL(u), !meta.objectStorageUseProxy);
|
const agent = this.httpRequestService.getAgentByUrl(new URL(u), !meta.objectStorageUseProxy, true);
|
||||||
const handlerOption: NodeHttpHandlerOptions = {};
|
const handlerOption: NodeHttpHandlerOptions = {};
|
||||||
if (meta.objectStorageUseSSL) {
|
if (meta.objectStorageUseSSL) {
|
||||||
handlerOption.httpsAgent = agent as https.Agent;
|
handlerOption.httpsAgent = agent as https.Agent;
|
||||||
|
|
Loading…
Reference in a new issue