-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.js
44 lines (40 loc) · 1.46 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
// 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'],
// cache: '/Users/punkish/Projects/zenodeo/cache'
// },
// production: {
// schemes: ['https'],
// cache: '/home/punkish/Nodes/zenodeo/cache'
// }
// };
// let tmp = config[mode || process.env.NODE_ENV || 'development'];
// for (let i in config.base) {
// tmp[i] = config.base[i];
// }
// return tmp;
// })();