-
Notifications
You must be signed in to change notification settings - Fork 0
/
zentinel.config.js
101 lines (92 loc) · 3.13 KB
/
zentinel.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
require("dotenv").config();
module.exports = {
app: {
version: "1.0.5",
alias: {},
},
config: {
/**********************************************
* MONITOR:
* Enables monitoring of application performance and health metrics.
* Once enabled, you may access the monitor at /health/status
**********************************************/
monitor: true,
/**********************************************
* STORAGE:
* This will add storage functionality to your web application.
* Using multer, you can manage the file uploads easily.
**********************************************/
storage: true,
/**********************************************
* MAILER:
* Configures the mailer service for sending emails.
**********************************************/
mailer: true,
/**********************************************
* DATABASE:
* Enables database connection and management.
**********************************************/
database: true,
/**********************************************
* RATELIMITER:
* Activates rate limiting to prevent abuse and ensure fair usage.
**********************************************/
ratelimiter: true,
/**********************************************
* HELMET:
* Applies security headers to protect against various web vulnerabilities.
**********************************************/
helmet: false,
/**********************************************
* CORS:
* Configures Cross-Origin Resource Sharing settings.
**********************************************/
cors: true,
/**********************************************
* LOGGER:
* Enables logging of application events and errors.
**********************************************/
logger: true,
/**********************************************
* CACHE:
* Manages caching mechanisms for improved performance.
**********************************************/
cache: false,
/**********************************************
* PROMETHEUS:
* Exposes metrics for monitoring and
* alerting with Prometheus. Once activated,
* web app will provide information at /metrics
**********************************************/
prometheus: true,
},
/**********************************************
* Below are the required configuration for
* Sequelize ORM. Only modify this if you know
* what you're doing.
**********************************************/
test: {
username: process.env.DATABASE_USER,
password: process.env.DATABASE_PASS,
database: process.env.DATABASE_NAME,
host: process.env.DATABASE_HOST,
port: process.env.DATABASE_PORT,
dialect: process.env.DATABASE_TYPE,
},
development: {
username: process.env.DATABASE_USER,
password: process.env.DATABASE_PASS,
database: process.env.DATABASE_NAME,
host: process.env.DATABASE_HOST,
port: process.env.DATABASE_PORT,
dialect: process.env.DATABASE_TYPE,
},
production: {
username: process.env.DATABASE_USER,
password: process.env.DATABASE_PASS,
database: process.env.DATABASE_NAME,
host: process.env.DATABASE_HOST,
port: process.env.DATABASE_PORT,
dialect: process.env.DATABASE_TYPE,
},
};