-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
75 lines (49 loc) · 3.07 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/*##################################################################################################
Automated Email Server
This file contains code to load the server configuration.
Copyright (c) 2016-2017 Lewd Ewe Ltd
License: MIT (details below)
Contact: Open-source <[email protected]> (http://lewdewe.com)
PGP keys: https://sks-keyservers.net/pks/lookup?op=vindex&search=Lewd+Ewe
If you create changes that would benefit many people then please offer your changes to us.
Forking this code should mainly be done to make bespoke or proprietary changes for your
individual project.
As use of this software will save you a lot of development time and perhaps earn you income,
please consider making a suitable monetary contribution via the following services:
Donorbox: https://donorbox.org/lewd-ewe-open-source
Flattr: https://flattr.com/profile/LewdEwe
Thank you for your support!
Have a look at the other software I've open sourced:
https://github.com/LewdEwe
Always retain this copyright and license text with the code below. You should not claim any part
of this work to be originally created by yourself. If any of the code below was sourced from the
internet then I have attributed it to the origin in the code comments.
------------------------------------------------------------------------------------------------
The MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy of this software
and associated documentation files (the 'Software'), to deal in the Software without
restriction, including without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or
substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
##################################################################################################*/
"use strict";
// Import dependencies.
let fs = require('fs');
let path = require('path');
let yaml = require('js-yaml');
// Components.
// Private variables.
// Public variables.
// Constants.
const BASE_FOLDER = process.env.pm_cwd || path.dirname(process.argv[1]);
/*================================================================================================*/
// Load the configuration.
module.exports = yaml.safeLoad(fs.readFileSync(path.join(BASE_FOLDER, 'config.yaml'), {encoding: 'utf8'}));
/*################################################################################################*/