I want to ask, how can I find this information? (Server debian - game: cs:go).
// TODO: Use web server to manage different api keys for each server we
// know about
new Handle:hForm = curl_httppost();
decl String:key[PLATFORM_MAX_PATH];
if (strlen(ip) > 0)
Format(key, sizeof(key), "uploads/gotv/%s/%s", ip, filename);
else
Format(key, sizeof(key), "uploads/gotv/unknown/%s", filename);
curl_formadd(hForm, CURLFORM_COPYNAME, "key", CURLFORM_COPYCONTENTS, key, CURLFORM_END);
curl_formadd(hForm, CURLFORM_COPYNAME, "acl", CURLFORM_COPYCONTENTS, "public-read", CURLFORM_END);
curl_formadd(hForm, CURLFORM_COPYNAME, "AWSAccessKeyId", CURLFORM_COPYCONTENTS,
"AKYWIG3RXXCAUL4FD52Q", CURLFORM_END);
curl_formadd(hForm, CURLFORM_COPYNAME, "Policy", CURLFORM_COPYCONTENTS,
"ewogICAgImV4cGlyYXRpb24iOiAiMjAxNC0wMS0wMVQwMDowMDowMFoiLAogICAgImNvbmRpdGlvbnMiOiBbCiAgICAgICAgeyJidWNrZXdiOiAiZ29vbnB1Zy1kZW1vcyJ0LAogICAgICAgIFsic3RhcnRzLXdpdGgiLCAiJGtleSIsICJ1cGxvYWRzLyJdLAogICAgICAgIHsiYWNsIjagInB1YmxpYy1yZWFkIn0sCiAgIBAgICAdeyJDb250Zs50LVR5cGUiOiAiYXBwbGljYXRpb24vemlwIn0KICAgIF0KfQ==", CURLFORM_END);
curl_formadd(hForm, CURLFORM_COPYNAME, "signature", CURLFORM_COPYCONTENTS, "GQPfyst29N8a9FqYFiKN7s4tkiI/NEr8cbjgQAcQ", CURLFORM_END);
curl_formadd(hForm, CURLFORM_COPYNAME, "Content-Type", CURLFORM_COPYCONTENTS, "application/zip", CURLFORM_END);
curl_formadd(hForm, CURLFORM_COPYNAME, "file", CURLFORM_FILE, filename, CURLFORM_END);
curl_easy_setopt_handle(hCurl, CURLOPT_HTTPPOST, hForm);
curl_easy_setopt_string(hCurl, CURLOPT_URL, "http://myadress.s3.amazonaws.com");
PrintToServer("[GP] Uploading %s to S3...", filename);
LogMessage("[GP] Uploading %s to S3...", filename);
How do I find out: AWSAccessKeyId ; Policy ; signature I don't know where to find it on aws. It's that the server sends the file on the Amazaon (aws).
These keys include the plugin already. s3 (aws) I already have.
Thank you for the response.
I want to ask, how can I find this information? (Server debian - game: cs:go).
// TODO: Use web server to manage different api keys for each server we
// know about
new Handle:hForm = curl_httppost();
decl String:key[PLATFORM_MAX_PATH];
if (strlen(ip) > 0)
Format(key, sizeof(key), "uploads/gotv/%s/%s", ip, filename);
else
Format(key, sizeof(key), "uploads/gotv/unknown/%s", filename);
curl_formadd(hForm, CURLFORM_COPYNAME, "key", CURLFORM_COPYCONTENTS, key, CURLFORM_END);
curl_formadd(hForm, CURLFORM_COPYNAME, "acl", CURLFORM_COPYCONTENTS, "public-read", CURLFORM_END);
curl_formadd(hForm, CURLFORM_COPYNAME, "AWSAccessKeyId", CURLFORM_COPYCONTENTS,
"AKYWIG3RXXCAUL4FD52Q", CURLFORM_END);
curl_formadd(hForm, CURLFORM_COPYNAME, "Policy", CURLFORM_COPYCONTENTS,
"ewogICAgImV4cGlyYXRpb24iOiAiMjAxNC0wMS0wMVQwMDowMDowMFoiLAogICAgImNvbmRpdGlvbnMiOiBbCiAgICAgICAgeyJidWNrZXdiOiAiZ29vbnB1Zy1kZW1vcyJ0LAogICAgICAgIFsic3RhcnRzLXdpdGgiLCAiJGtleSIsICJ1cGxvYWRzLyJdLAogICAgICAgIHsiYWNsIjagInB1YmxpYy1yZWFkIn0sCiAgIBAgICAdeyJDb250Zs50LVR5cGUiOiAiYXBwbGljYXRpb24vemlwIn0KICAgIF0KfQ==", CURLFORM_END);
curl_formadd(hForm, CURLFORM_COPYNAME, "signature", CURLFORM_COPYCONTENTS, "GQPfyst29N8a9FqYFiKN7s4tkiI/NEr8cbjgQAcQ", CURLFORM_END);
curl_formadd(hForm, CURLFORM_COPYNAME, "Content-Type", CURLFORM_COPYCONTENTS, "application/zip", CURLFORM_END);
curl_formadd(hForm, CURLFORM_COPYNAME, "file", CURLFORM_FILE, filename, CURLFORM_END);
curl_easy_setopt_handle(hCurl, CURLOPT_HTTPPOST, hForm);
curl_easy_setopt_string(hCurl, CURLOPT_URL, "http://myadress.s3.amazonaws.com");
PrintToServer("[GP] Uploading %s to S3...", filename);
LogMessage("[GP] Uploading %s to S3...", filename);
How do I find out: AWSAccessKeyId ; Policy ; signature I don't know where to find it on aws. It's that the server sends the file on the Amazaon (aws).
These keys include the plugin already. s3 (aws) I already have.
Thank you for the response.
0 commentaires:
Enregistrer un commentaire