forked from kdby-io/greenlock-storage-s3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
31 lines (23 loc) · 732 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
var path = require("path");
var Promise = require("bluebird");
const defaultOptions = {
accessKeyId: null
, secretAccessKey: null
, bucketName: null
, bucketRegion: null
, accountsDir: "accounts/"
, configDir: "acme/"
, endpoint: null,
};
const pathHelper = require("./lib/pathHelper");
const fileNames = require("./lib/fileNames");
module.exports.create = (createOptions) => {
const options = Object.assign({}, defaultOptions, createOptions);
require('./lib/debug')(options.debug);
require('./lib/aws')(options);
const handlers = {
certificates: require("./lib/certificates")(options)
, accounts: require("./lib/accounts")(options)
};
return handlers;
};