Fix AWS MinIO

This commit is contained in:
2026-05-01 11:16:47 +10:00
parent c4ec6f0ed2
commit 1c8abf2a88
5 changed files with 536 additions and 29 deletions
@@ -267,7 +267,7 @@ int ANSFTechMinIOTest() {
std::string baseDomain = "https://minio.dev.ftech.ai";
std::string bucketRegion = "vn1";
std::string serviceName = "s3";
std::string bucketName = "aicamera";
std::string bucketName = "funzy";
int port = 443;
bool bTls = true;
@@ -281,8 +281,8 @@ int ANSFTechMinIOTest() {
}
// Set authentication
std::string accessKey = "aicamerapush";
std::string secretKey = "88fO8Y3EpMFMG1HFCCcfCE4cWh0k5KKZ";
std::string accessKey = "tuanpm";
std::string secretKey = "BRFbQujGhkKrI3xqSUE9ywnpXHt27c";
if (SetAuthenticationANSAWSHandle(&awsHandle, accessKey.c_str(), secretKey.c_str()) != 1) {
std::cerr << "Failed to set AWS S3 authentication." << std::endl;
ReleaseANSAWSHandle(&awsHandle);
@@ -389,9 +389,12 @@ int ANSLLMOllamaTest() {
int main()
{
//ANSLLMOllamaTest();
std::cout << "===== MinIO (path-style) =====" << std::endl;
ANSFTechMinIOTest();
std::cout << "\n===== AWS S3 (virtual-host) =====" << std::endl;
ANSAWSTest();
//ANSFTechMinIOTest();
//ANSAWSTest();
//ANSLLMTest();
//SendEmailExample();
//uploadFileToGoogleStorage();