From 9723f3f8c4d9823dc70bb6632d40e696a2ef3069 Mon Sep 17 00:00:00 2001 From: fcomte <48868412+fcomte@users.noreply.github.com> Date: Wed, 30 Sep 2020 10:42:47 +0200 Subject: [PATCH] Update export-credentials-minio.js --- .../mon-compte/export-credentials-minio.js | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/js/components/mon-compte/export-credentials-minio.js b/src/js/components/mon-compte/export-credentials-minio.js index 8a2dd083b..b6afa1944 100644 --- a/src/js/components/mon-compte/export-credentials-minio.js +++ b/src/js/components/mon-compte/export-credentials-minio.js @@ -61,6 +61,27 @@ export AWS_ACCESS_KEY_ID= ${c.AWS_ACCESS_KEY_ID} export AWS_SECRET_ACCESS_KEY= ${c.AWS_SECRET_ACCESS_KEY} export AWS_DEFAULT_REGION= ${c.AWS_DEFAULT_REGION} export AWS_SESSION_TOKEN= ${c.AWS_SESSION_TOKEN} +export AWS_S3_ENDPOINT= ${c.AWS_S3_ENDPOINT} + `, + }, + { + id: 'mc', + label: 'MC client', + fileName: '.bashrc', + text: (c) => + ` + export MC_HOST_minio=https://${c.AWS_ACCESS_KEY_ID}:${c.AWS_SECRET_ACCESS_KEY}:${c.AWS_SESSION_TOKEN}@${c.AWS_S3_ENDPOINT} + `, + }, + { + id: 'env', + label: 'Environment variables', + fileName: '.bashrc', + text: (c) => ` +export AWS_ACCESS_KEY_ID= ${c.AWS_ACCESS_KEY_ID} +export AWS_SECRET_ACCESS_KEY= ${c.AWS_SECRET_ACCESS_KEY} +export AWS_DEFAULT_REGION= ${c.AWS_DEFAULT_REGION} +export AWS_SESSION_TOKEN= ${c.AWS_SESSION_TOKEN} export AWS_S3_ENDPOINT= ${c.AWS_S3_ENDPOINT} `, },