@cerema/cadriciel 1.0.6 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/s3.js +2 -1
- package/package.json +1 -1
package/lib/s3.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const os = require('os');
|
|
2
2
|
const fs = require('fs');
|
|
3
3
|
const util = require('util');
|
|
4
|
-
const S3_URI = 's3.
|
|
4
|
+
const S3_URI = 's3.gra.io.cloud.ovh.net';
|
|
5
5
|
const Minio = require('minio');
|
|
6
6
|
|
|
7
7
|
const readFile = util.promisify(fs.readFile);
|
|
@@ -12,6 +12,7 @@ const S3 = async function (current_login) {
|
|
|
12
12
|
current_login.port = 443;
|
|
13
13
|
current_login.endPoint = S3_URI;
|
|
14
14
|
current_login.useSSL = true;
|
|
15
|
+
current_login.region='gra';
|
|
15
16
|
return new Minio.Client(current_login);
|
|
16
17
|
}
|
|
17
18
|
const r = await readFile(`${os.homedir}/.cadriciel/account.json`, 'utf-8');
|