-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
32 lines (29 loc) · 1.09 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
// config.js
// Configurations file for the server.
/**
* Configurations for the server.
* @module config
* @type {Object}
* @property {string} host - The hostname to listen on.
* @property {number} port - The port to listen on.
* @property {string} codePath - The path to the code directory.
* @property {Object} https - HTTPS configurations.
* @property {boolean} https.enabled - Whether HTTPS is enabled. (Note: This should be enabled in a production environment.)
* @property {string} https.key - The path to the key file for HTTPS.
* @property {string} https.cert - The path to the certificate file for HTTPS.
* @property {Object} backend - Backend configurations.
* @property {boolean} backend.https - Whether the backend uses HTTPS.
* @property {string} backend.host - The hostname of the backend.
* @property {number} backend.port - The port of the backend.
*/
const config = {
host: "localhost",
port: 3000,
codePath: __dirname,
https: {
enabled: false,
key: __dirname + "/ssl/" + "tridecco.key",
cert: __dirname + "/ssl/" + "tridecco.pem",
},
};
module.exports = config;