-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
44 lines (40 loc) · 1.23 KB
/
config.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
32
33
34
35
36
37
38
39
40
41
42
43
44
// see: https://github.com/opencomponents/oc/wiki/Registry
var s3 = require("oc-s3-storage-adapter");
exports.configuration = {
verbosity: 0,
discovery: true,
tempDir: "./temp/",
refreshInterval: 600,
pollingInterval: 5,
baseUrl: process.env.BASE_URL,
port: process.env.PORT || 9000,
tempDir: './temp/',
refreshInterval: 600,
pollingInterval: 5,
storage: {
adapter: s3,
options: {
endpoint: process.env.S3_ENDPOINT,
region: process.env.S3_REGION,
key: process.env.S3_ACCCESS_KEY,
secret: process.env.S3_SECRET_KEY,
bucket: process.env.S3_BUCKET,
componentsDir: process.env.COMPONENTS_DIR,
sslEnabled: Boolean(process.env.S3_USE_SSL),
s3ForcePathStyle: Boolean(process.env.S3_FORCE_PATH_STYLE),
debug: Boolean(process.env.S3_DEBUG),
},
},
dependencies: [],
env: { name: 'production' }
}
if (process.env.PUBLISH_USERNAME && process.env.PUBLISH_PASSWORD) {
exports.configuration.publishAuth = {
type: 'basic',
username: process.env.PUBLISH_USERNAME,
password: process.env.PUBLISH_PASSWORD
};
}
exports.registerPlugins = (registry) => {
// You plugins registration code
}