forked from punkish/zenodeo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
56 lines (52 loc) · 1.76 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
45
46
47
48
49
50
51
52
53
54
55
56
const Package = require('./package.json');
module.exports = (function(mode) {
const config = {
base: {
uri: 'https://zenodo.org/api',
zenodo: 'https://zenodo.org/api',
tb: 'http://tb.plazi.org/GgServer/xml/',
port: 3030,
contenttype: 'Content-Type: application/vnd.api+json',
info: {
title: 'Zenodeo API documentation for BLR',
version: '2.0.0',
description: Package.description,
termsOfService: '/tos',
contact: {
name: Package.author,
url: 'https://punkish.org/About',
email: '[email protected]'
},
license: {
name: 'CC0 Public Domain Dedication',
url: 'https://creativecommons.org/publicdomain/zero/1.0/legalcode'
}
}
},
development: {
schemes: ['http'],
<<<<<<< HEAD
cache: '/Users/punkish/Projects/zenodeo/cache'
},
production: {
schemes: ['https'],
cache: '/home/punkish/Nodes/zenodeo/cache'
=======
data: '/Users/punkish/Projects/zenodeo/data',
cache: '/Users/punkish/Projects/zenodeo/cache',
zenodeo: 'http://localhost:3030'
},
production: {
schemes: ['https'],
data: '/home/punkish/Nodes/zenodeo/data',
cache: '/home/punkish/Nodes/zenodeo/cache',
zenodeo: 'https://zenodeo.punkish.org'
>>>>>>> blr
}
};
let tmp = config[mode || process.env.NODE_ENV || 'development'];
for (let i in config.base) {
tmp[i] = config.base[i];
}
return tmp;
})();