underpost 2.8.817 → 2.8.821

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/index.js CHANGED
@@ -5,6 +5,7 @@
5
5
  */
6
6
 
7
7
  import UnderpostBaremetal from './cli/baremetal.js';
8
+ import UnderpostCloudInit from './cli/cloud-init.js';
8
9
  import UnderpostCluster from './cli/cluster.js';
9
10
  import UnderpostCron from './cli/cron.js';
10
11
  import UnderpostDB from './cli/db.js';
@@ -32,109 +33,118 @@ class Underpost {
32
33
  * @type {String}
33
34
  * @memberof Underpost
34
35
  */
35
- static version = 'v2.8.817';
36
+ static version = 'v2.8.821';
36
37
  /**
37
38
  * Repository cli API
38
39
  * @static
39
- * @type {UnderpostRepository.API}
40
+ * @type {UnderpostRepository}
40
41
  * @memberof Underpost
41
42
  */
42
43
  static repo = UnderpostRepository.API;
43
44
  /**
44
45
  * Root Env cli API
45
46
  * @static
46
- * @type {UnderpostRootEnv.API}
47
+ * @type {UnderpostRootEnv}
47
48
  * @memberof Underpost
48
49
  */
49
50
  static env = UnderpostRootEnv.API;
50
51
  /**
51
52
  * Test cli API
52
53
  * @static
53
- * @type {UnderpostTest.API}
54
+ * @type {UnderpostTest}
54
55
  * @memberof Underpost
55
56
  */
56
57
  static test = UnderpostTest.API;
57
58
  /**
58
59
  * Underpost Start Up cli API
59
60
  * @static
60
- * @type {UnderpostStartUp.API}
61
+ * @type {UnderpostStartUp}
61
62
  * @memberof Underpost
62
63
  */
63
64
  static start = UnderpostStartUp.API;
64
65
  /**
65
66
  * Cluster cli API
66
67
  * @static
67
- * @type {UnderpostCluster.API}
68
+ * @type {UnderpostCluster}
68
69
  * @memberof Underpost
69
70
  */
70
71
  static cluster = UnderpostCluster.API;
71
72
  /**
72
73
  * Image cli API
73
74
  * @static
74
- * @type {UnderpostImage.API}
75
+ * @type {UnderpostImage}
75
76
  * @memberof Underpost
76
77
  */
77
78
  static image = UnderpostImage.API;
78
79
  /**
79
80
  * Secrets cli API
80
81
  * @static
81
- * @type {UnderpostSecret.API}
82
+ * @type {UnderpostSecret}
82
83
  * @memberof Underpost
83
84
  */
84
85
  static secret = UnderpostSecret.API;
85
86
  /**
86
87
  * Scripts cli API
87
88
  * @static
88
- * @type {UnderpostScript.API}
89
+ * @type {UnderpostScript}
89
90
  * @memberof Underpost
90
91
  */
91
92
  static script = UnderpostScript.API;
92
93
  /**
93
94
  * Database cli API
94
95
  * @static
95
- * @type {UnderpostDB.API}
96
+ * @type {UnderpostDB}
96
97
  * @memberof Underpost
97
98
  */
98
99
  static db = UnderpostDB.API;
99
100
  /**
100
101
  * Deployment cli API
101
102
  * @static
102
- * @type {UnderpostDeploy.API}
103
+ * @type {UnderpostDeploy}
103
104
  * @memberof Underpost
104
105
  */
105
106
  static deploy = UnderpostDeploy.API;
106
107
  /**
107
108
  * Cron cli API
108
109
  * @static
109
- * @type {UnderpostCron.API}
110
+ * @type {UnderpostCron}
110
111
  * @memberof Underpost
111
112
  */
112
113
  static cron = UnderpostCron.API;
113
114
  /**
114
115
  * File Storage cli API
115
116
  * @static
116
- * @type {UnderpostFileStorage.API}
117
+ * @type {UnderpostFileStorage}
117
118
  * @memberof Underpost
118
119
  */
119
120
  static fs = UnderpostFileStorage.API;
120
121
  /**
121
122
  * Monitor cli API
122
123
  * @static
123
- * @type {UnderpostMonitor.API}
124
+ * @type {UnderpostMonitor}
124
125
  * @memberof Underpost
125
126
  */
126
127
  static monitor = UnderpostMonitor.API;
127
128
  /**
128
129
  * LXD cli API
129
130
  * @static
130
- * @type {UnderpostLxd.API}
131
+ * @type {UnderpostLxd}
131
132
  * @memberof Underpost
132
133
  */
133
134
  static lxd = UnderpostLxd.API;
135
+
136
+ /**
137
+ * Cloud Init cli API
138
+ * @static
139
+ * @type {UnderpostCloudInit}
140
+ * @memberof Underpost
141
+ */
142
+ static cloudInit = UnderpostCloudInit.API;
143
+
134
144
  /**
135
145
  * Baremetal cli API
136
146
  * @static
137
- * @type {UnderpostBaremetal.API}
147
+ * @type {UnderpostBaremetal}
138
148
  * @memberof Underpost
139
149
  */
140
150
  static baremetal = UnderpostBaremetal.API;
@@ -251,11 +251,6 @@ const buildRuntime = async () => {
251
251
  return next();
252
252
  });
253
253
 
254
- // https://github.com/prometheus/prometheus/blob/main/documentation/examples/prometheus.yml
255
- // https://github.com/grafana/grafana/tree/main/conf
256
- // https://medium.com/@diego.coder/monitoreo-de-aplicaciones-con-node-js-grafana-y-prometheus-afd2b33e3f91
257
- // for grafana prometheus server: host.docker.internal:9090
258
-
259
254
  app.use((req, res, next) => {
260
255
  requestCounter.inc({
261
256
  instance: `${host}:${port}${path}`,
package/src/server/ssl.js CHANGED
@@ -106,15 +106,4 @@ const sslRedirectMiddleware = (req, res, port, proxyRouter) => {
106
106
  return res.status(302).redirect(sslRedirectUrl);
107
107
  };
108
108
 
109
- const installCertbot = () => {
110
- switch (process.platform) {
111
- case 'win32':
112
- break;
113
- case 'linux':
114
- break;
115
- default:
116
- break;
117
- }
118
- };
119
-
120
- export { buildSSL, buildSecureContext, validateSecureContext, createSslServer, sslRedirectMiddleware, installCertbot };
109
+ export { buildSSL, buildSecureContext, validateSecureContext, createSslServer, sslRedirectMiddleware };