Skip to content

fix:add s3 proxy when env config #152

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Aug 15, 2025
Merged

fix:add s3 proxy when env config #152

merged 4 commits into from
Aug 15, 2025

Conversation

dingzhenznen
Copy link
Contributor

fix:add s3 proxy when env config

@dingzhenznen
Copy link
Contributor Author

add s3 proxy when env config

Copy link

github-actions bot commented Aug 4, 2025

Preview Image Label

Preview Images for this PR are:

registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin-pr:e44bbb99dd0fe01c787b2871e1497ba4559fac2a

src/s3/config.ts Outdated
@@ -10,8 +12,17 @@ export type FileConfig = {
accessKey: string; // MinIO access key
secretKey: string; // MinIO secret key
bucket: string; // 存储桶名称
transportAgent: any; // 代理
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no any

src/s3/config.ts Outdated
};

let transportAgent;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

const transportAgent = process.env.MINIO_USE_SSL === 'true'
? new HttpsProxyAgent(process.env.HTTP_PROXY)
: new HttpProxyAgent(process.env.HTTP_PROXY);
}

@pull-request-size pull-request-size bot added size/M and removed size/S labels Aug 7, 2025
@FinleyGe FinleyGe merged commit b55a13e into labring:main Aug 15, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants