underpost 2.8.1 → 2.8.7
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/.dockerignore +1 -0
- package/.github/workflows/ghpkg.yml +19 -49
- package/.github/workflows/npmpkg.yml +67 -0
- package/.github/workflows/publish.yml +5 -5
- package/.github/workflows/pwa-microservices-template.page.yml +12 -4
- package/.github/workflows/pwa-microservices-template.test.yml +2 -2
- package/.vscode/extensions.json +18 -71
- package/.vscode/settings.json +20 -3
- package/AUTHORS.md +16 -5
- package/CHANGELOG.md +123 -3
- package/Dockerfile +27 -70
- package/README.md +39 -29
- package/bin/build.js +186 -0
- package/bin/db.js +2 -24
- package/bin/deploy.js +1467 -236
- package/bin/file.js +67 -16
- package/bin/hwt.js +0 -10
- package/bin/index.js +1 -77
- package/bin/ssl.js +19 -11
- package/bin/util.js +9 -104
- package/bin/vs.js +26 -2
- package/cli.md +451 -0
- package/conf.js +29 -138
- package/docker-compose.yml +1 -1
- package/jsdoc.json +1 -1
- package/manifests/calico-custom-resources.yaml +25 -0
- package/manifests/deployment/adminer/deployment.yaml +32 -0
- package/manifests/deployment/adminer/kustomization.yaml +7 -0
- package/manifests/deployment/adminer/service.yaml +13 -0
- package/manifests/deployment/fastapi/backend-deployment.yml +120 -0
- package/manifests/deployment/fastapi/backend-service.yml +19 -0
- package/manifests/deployment/fastapi/frontend-deployment.yml +54 -0
- package/manifests/deployment/fastapi/frontend-service.yml +15 -0
- package/manifests/deployment/kafka/deployment.yaml +69 -0
- package/manifests/deployment/mongo-express/deployment.yaml +60 -0
- package/manifests/deployment/phpmyadmin/deployment.yaml +54 -0
- package/manifests/kind-config-dev.yaml +12 -0
- package/manifests/kind-config.yaml +12 -0
- package/manifests/kubeadm-calico-config.yaml +119 -0
- package/manifests/letsencrypt-prod.yaml +15 -0
- package/manifests/mariadb/config.yaml +10 -0
- package/manifests/mariadb/kustomization.yaml +9 -0
- package/manifests/mariadb/pv.yaml +12 -0
- package/manifests/mariadb/pvc.yaml +10 -0
- package/manifests/mariadb/secret.yaml +8 -0
- package/manifests/mariadb/service.yaml +10 -0
- package/manifests/mariadb/statefulset.yaml +55 -0
- package/manifests/mongodb/backup-access.yaml +16 -0
- package/manifests/mongodb/backup-cronjob.yaml +42 -0
- package/manifests/mongodb/backup-pv-pvc.yaml +22 -0
- package/manifests/mongodb/configmap.yaml +26 -0
- package/manifests/mongodb/headless-service.yaml +10 -0
- package/manifests/mongodb/kustomization.yaml +11 -0
- package/manifests/mongodb/pv-pvc.yaml +23 -0
- package/manifests/mongodb/statefulset.yaml +125 -0
- package/manifests/mongodb-4.4/kustomization.yaml +7 -0
- package/manifests/mongodb-4.4/pv-pvc.yaml +23 -0
- package/manifests/mongodb-4.4/service-deployment.yaml +63 -0
- package/manifests/postgresql/configmap.yaml +9 -0
- package/manifests/postgresql/kustomization.yaml +10 -0
- package/manifests/postgresql/pv.yaml +15 -0
- package/manifests/postgresql/pvc.yaml +13 -0
- package/manifests/postgresql/service.yaml +10 -0
- package/manifests/postgresql/statefulset.yaml +37 -0
- package/manifests/valkey/kustomization.yaml +7 -0
- package/manifests/valkey/service.yaml +17 -0
- package/manifests/valkey/statefulset.yaml +41 -0
- package/package.json +127 -136
- package/src/api/core/core.service.js +1 -1
- package/src/api/default/default.service.js +1 -1
- package/src/api/user/user.model.js +16 -3
- package/src/api/user/user.service.js +15 -12
- package/src/cli/cluster.js +389 -0
- package/src/cli/cron.js +121 -0
- package/src/cli/db.js +222 -0
- package/src/cli/deploy.js +487 -0
- package/src/cli/env.js +58 -0
- package/src/cli/fs.js +161 -0
- package/src/cli/image.js +66 -0
- package/src/cli/index.js +312 -0
- package/src/cli/monitor.js +236 -0
- package/src/cli/repository.js +128 -0
- package/src/cli/script.js +53 -0
- package/src/cli/secrets.js +37 -0
- package/src/cli/test.js +118 -0
- package/src/client/components/core/Account.js +28 -24
- package/src/client/components/core/Auth.js +22 -4
- package/src/client/components/core/Blockchain.js +1 -1
- package/src/client/components/core/CalendarCore.js +128 -121
- package/src/client/components/core/CommonJs.js +283 -19
- package/src/client/components/core/CssCore.js +16 -4
- package/src/client/components/core/Docs.js +1 -2
- package/src/client/components/core/DropDown.js +5 -1
- package/src/client/components/core/EventsUI.js +3 -3
- package/src/client/components/core/FileExplorer.js +86 -78
- package/src/client/components/core/Input.js +22 -6
- package/src/client/components/core/JoyStick.js +2 -2
- package/src/client/components/core/LoadingAnimation.js +3 -12
- package/src/client/components/core/LogIn.js +3 -3
- package/src/client/components/core/LogOut.js +1 -1
- package/src/client/components/core/Modal.js +54 -20
- package/src/client/components/core/Panel.js +109 -90
- package/src/client/components/core/PanelForm.js +23 -30
- package/src/client/components/core/Recover.js +3 -3
- package/src/client/components/core/RichText.js +1 -11
- package/src/client/components/core/Router.js +3 -1
- package/src/client/components/core/Scroll.js +1 -0
- package/src/client/components/core/SignUp.js +2 -2
- package/src/client/components/core/Translate.js +47 -9
- package/src/client/components/core/Validator.js +9 -1
- package/src/client/components/core/VanillaJs.js +0 -9
- package/src/client/components/core/Worker.js +34 -31
- package/src/client/components/default/RoutesDefault.js +3 -2
- package/src/client/services/core/core.service.js +15 -10
- package/src/client/services/default/default.management.js +46 -37
- package/src/client/ssr/Render.js +6 -1
- package/src/client/ssr/body/CacheControl.js +2 -3
- package/src/client/sw/default.sw.js +3 -3
- package/src/db/mongo/MongooseDB.js +29 -1
- package/src/index.js +101 -19
- package/src/mailer/MailerProvider.js +3 -0
- package/src/runtime/lampp/Dockerfile +65 -0
- package/src/runtime/lampp/Lampp.js +1 -13
- package/src/runtime/xampp/Xampp.js +0 -13
- package/src/server/auth.js +3 -3
- package/src/server/backup.js +49 -93
- package/src/server/client-build.js +49 -46
- package/src/server/client-formatted.js +6 -3
- package/src/server/conf.js +297 -55
- package/src/server/dns.js +75 -62
- package/src/server/downloader.js +0 -8
- package/src/server/json-schema.js +77 -0
- package/src/server/logger.js +15 -10
- package/src/server/network.js +20 -161
- package/src/server/peer.js +2 -2
- package/src/server/process.js +25 -2
- package/src/server/proxy.js +7 -29
- package/src/server/runtime.js +53 -40
- package/src/server/ssl.js +1 -1
- package/src/server/start.js +122 -0
- package/src/server/valkey.js +27 -11
- package/test/api.test.js +0 -8
- package/src/dns.js +0 -22
- package/src/server/prompt-optimizer.js +0 -28
- package/startup.js +0 -11
package/cli.md
ADDED
|
@@ -0,0 +1,451 @@
|
|
|
1
|
+
## underpost ci/cd cli v2.8.7
|
|
2
|
+
|
|
3
|
+
### Usage: `underpost [options] [command]`
|
|
4
|
+
```
|
|
5
|
+
Options:
|
|
6
|
+
-V, --version output the version number
|
|
7
|
+
-h, --help display help for command
|
|
8
|
+
|
|
9
|
+
Commands:
|
|
10
|
+
new <app-name> Create a new project
|
|
11
|
+
start [options] <deploy-id> [env] Start up server, build pipelines, or services
|
|
12
|
+
clone [options] <uri> Clone github repository
|
|
13
|
+
pull <path> <uri> Pull github repository
|
|
14
|
+
cmt [options] <path> <commit-type> [module-tag] [message] Commit github repository
|
|
15
|
+
push [options] <path> <uri> Push github repository
|
|
16
|
+
env <deploy-id> [env] Set environment variables files and conf related to <deploy-id>
|
|
17
|
+
config <operator> [key] [value] Manage configuration, operators
|
|
18
|
+
root Get npm root path
|
|
19
|
+
cluster [options] [pod-name] Manage cluster, for default initialization base kind cluster
|
|
20
|
+
deploy [options] <deploy-list> [env] Manage deployment, for default deploy development pods
|
|
21
|
+
secret [options] <platform> Manage secrets
|
|
22
|
+
dockerfile-image-build [options] Build image from Dockerfile
|
|
23
|
+
dockerfile-pull-base-images Pull underpost dockerfile images requirements
|
|
24
|
+
install Fast import underpost npm dependencies
|
|
25
|
+
db [options] <deploy-list> Manage databases
|
|
26
|
+
script [options] <operator> <script-name> [script-value] Supports a number of built-in underpost global scripts and their preset life cycle events as well as arbitrary scripts
|
|
27
|
+
cron [options] [deploy-list] [job-list] Cron jobs management
|
|
28
|
+
fs [options] [path] File storage management, for default upload file
|
|
29
|
+
test [options] [deploy-list] Manage Test, for default run current underpost default test
|
|
30
|
+
monitor [options] <deploy-id> [env] Monitor health server management
|
|
31
|
+
help [command] display help for command
|
|
32
|
+
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Commands:
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
### `new` :
|
|
39
|
+
```
|
|
40
|
+
Usage: underpost new [options] <app-name>
|
|
41
|
+
|
|
42
|
+
Create a new project
|
|
43
|
+
|
|
44
|
+
Arguments:
|
|
45
|
+
app-name Application name
|
|
46
|
+
|
|
47
|
+
Options:
|
|
48
|
+
-h, --help display help for command
|
|
49
|
+
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
### `start` :
|
|
54
|
+
```
|
|
55
|
+
Usage: underpost start [options] <deploy-id> [env]
|
|
56
|
+
|
|
57
|
+
Start up server, build pipelines, or services
|
|
58
|
+
|
|
59
|
+
Arguments:
|
|
60
|
+
deploy-id Deploy configuration id
|
|
61
|
+
env Optional environment, for default is development
|
|
62
|
+
|
|
63
|
+
Options:
|
|
64
|
+
--run Run app servers and monitor health server
|
|
65
|
+
--build Build app client
|
|
66
|
+
-h, --help display help for command
|
|
67
|
+
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
### `clone` :
|
|
72
|
+
```
|
|
73
|
+
Usage: underpost clone [options] <uri>
|
|
74
|
+
|
|
75
|
+
Clone github repository
|
|
76
|
+
|
|
77
|
+
Arguments:
|
|
78
|
+
uri e.g. username/repository
|
|
79
|
+
|
|
80
|
+
Options:
|
|
81
|
+
--bare Clone only .git files
|
|
82
|
+
-h, --help display help for command
|
|
83
|
+
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
### `pull` :
|
|
88
|
+
```
|
|
89
|
+
Usage: underpost pull [options] <path> <uri>
|
|
90
|
+
|
|
91
|
+
Pull github repository
|
|
92
|
+
|
|
93
|
+
Arguments:
|
|
94
|
+
path Absolute or relative directory
|
|
95
|
+
uri e.g. username/repository
|
|
96
|
+
|
|
97
|
+
Options:
|
|
98
|
+
-h, --help display help for command
|
|
99
|
+
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
### `cmt` :
|
|
104
|
+
```
|
|
105
|
+
Usage: underpost cmt [options] <path> <commit-type> [module-tag] [message]
|
|
106
|
+
|
|
107
|
+
Commit github repository
|
|
108
|
+
|
|
109
|
+
Arguments:
|
|
110
|
+
path Absolute or relative directory
|
|
111
|
+
commit-type Options:
|
|
112
|
+
feat,fix,docs,style,refactor,perf,cd,test,build,ci,chore,revert,backup
|
|
113
|
+
module-tag Optional set module tag
|
|
114
|
+
message Optional set additional message
|
|
115
|
+
|
|
116
|
+
Options:
|
|
117
|
+
--empty Allow empty files
|
|
118
|
+
--copy Copy to clipboard message
|
|
119
|
+
--info Info commit types
|
|
120
|
+
-h, --help display help for command
|
|
121
|
+
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
### `push` :
|
|
126
|
+
```
|
|
127
|
+
Usage: underpost push [options] <path> <uri>
|
|
128
|
+
|
|
129
|
+
Push github repository
|
|
130
|
+
|
|
131
|
+
Arguments:
|
|
132
|
+
path Absolute or relative directory
|
|
133
|
+
uri e.g. username/repository
|
|
134
|
+
|
|
135
|
+
Options:
|
|
136
|
+
-f Force push overwriting repository
|
|
137
|
+
-h, --help display help for command
|
|
138
|
+
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
### `env` :
|
|
143
|
+
```
|
|
144
|
+
Usage: underpost env [options] <deploy-id> [env]
|
|
145
|
+
|
|
146
|
+
Set environment variables files and conf related to <deploy-id>
|
|
147
|
+
|
|
148
|
+
Arguments:
|
|
149
|
+
deploy-id deploy configuration id, if 'clean' restore default
|
|
150
|
+
env Optional environment, for default is production
|
|
151
|
+
|
|
152
|
+
Options:
|
|
153
|
+
-h, --help display help for command
|
|
154
|
+
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
### `config` :
|
|
159
|
+
```
|
|
160
|
+
Usage: underpost config [options] <operator> [key] [value]
|
|
161
|
+
|
|
162
|
+
Manage configuration, operators
|
|
163
|
+
|
|
164
|
+
Arguments:
|
|
165
|
+
operator Options: set,delete,get,list,clean
|
|
166
|
+
key Config key
|
|
167
|
+
value Config value
|
|
168
|
+
|
|
169
|
+
Options:
|
|
170
|
+
-h, --help display help for command
|
|
171
|
+
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
### `root` :
|
|
176
|
+
```
|
|
177
|
+
Usage: underpost root [options]
|
|
178
|
+
|
|
179
|
+
Get npm root path
|
|
180
|
+
|
|
181
|
+
Options:
|
|
182
|
+
-h, --help display help for command
|
|
183
|
+
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
### `cluster` :
|
|
188
|
+
```
|
|
189
|
+
Usage: underpost cluster [options] [pod-name]
|
|
190
|
+
|
|
191
|
+
Manage cluster, for default initialization base kind cluster
|
|
192
|
+
|
|
193
|
+
Arguments:
|
|
194
|
+
pod-name Optional pod name filter
|
|
195
|
+
|
|
196
|
+
Options:
|
|
197
|
+
--reset Delete all clusters and prune all data and caches
|
|
198
|
+
--mariadb Init with mariadb statefulset
|
|
199
|
+
--mongodb Init with mongodb statefulset
|
|
200
|
+
--postgresql Init with postgresql statefulset
|
|
201
|
+
--mongodb4 Init with mongodb 4.4 service
|
|
202
|
+
--istio Init base istio cluster
|
|
203
|
+
--valkey Init with valkey service
|
|
204
|
+
--contour Init with project contour base HTTPProxy and envoy
|
|
205
|
+
--cert-manager Init with letsencrypt-prod ClusterIssuer
|
|
206
|
+
--info Get all kinds objects deployed
|
|
207
|
+
--full Init with all statefulsets and services available
|
|
208
|
+
--ns-use <ns-name> Switches current context to namespace
|
|
209
|
+
--dev init with dev cluster
|
|
210
|
+
--list-pods Display list pods information
|
|
211
|
+
--info-capacity display current total machine capacity info
|
|
212
|
+
--info-capacity-pod display current machine capacity pod info
|
|
213
|
+
--pull-image Set optional pull associated image
|
|
214
|
+
-h, --help display help for command
|
|
215
|
+
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
### `deploy` :
|
|
220
|
+
```
|
|
221
|
+
Usage: underpost deploy [options] <deploy-list> [env]
|
|
222
|
+
|
|
223
|
+
Manage deployment, for default deploy development pods
|
|
224
|
+
|
|
225
|
+
Arguments:
|
|
226
|
+
deploy-list Deploy id list, e.g. default-a,default-b
|
|
227
|
+
env Optional environment, for default is
|
|
228
|
+
development
|
|
229
|
+
|
|
230
|
+
Options:
|
|
231
|
+
--remove Delete deployments and services
|
|
232
|
+
--sync Sync deployments env, ports, and replicas
|
|
233
|
+
--info-router Display router structure
|
|
234
|
+
--expose Expose service match deploy-list
|
|
235
|
+
--info-util Display kubectl util management commands
|
|
236
|
+
--cert Reset tls/ssl certificate secrets
|
|
237
|
+
--build-manifest Build kind yaml manifests: deployments,
|
|
238
|
+
services, proxy and secrets
|
|
239
|
+
--dashboard-update Update dashboard instance data with current
|
|
240
|
+
router config
|
|
241
|
+
--replicas <replicas> Set custom number of replicas
|
|
242
|
+
--versions <deployment-versions> Comma separated custom deployment versions
|
|
243
|
+
--traffic <traffic-versions> Comma separated custom deployment traffic
|
|
244
|
+
--disable-update-deployment Disable update deployments
|
|
245
|
+
--info-traffic get traffic conf form current resources
|
|
246
|
+
deployments
|
|
247
|
+
--rebuild-clients-bundle Inside container, rebuild clients bundle,
|
|
248
|
+
only static public or storage client files
|
|
249
|
+
-h, --help display help for command
|
|
250
|
+
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
### `secret` :
|
|
255
|
+
```
|
|
256
|
+
Usage: underpost secret [options] <platform>
|
|
257
|
+
|
|
258
|
+
Manage secrets
|
|
259
|
+
|
|
260
|
+
Arguments:
|
|
261
|
+
platform Options: docker,underpost
|
|
262
|
+
|
|
263
|
+
Options:
|
|
264
|
+
--init Init secrets platform environment
|
|
265
|
+
--create-from-file <path-env-file> Create secret from env file
|
|
266
|
+
--list Lists secrets
|
|
267
|
+
-h, --help display help for command
|
|
268
|
+
|
|
269
|
+
```
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
### `dockerfile-image-build` :
|
|
273
|
+
```
|
|
274
|
+
Usage: underpost dockerfile-image-build [options]
|
|
275
|
+
|
|
276
|
+
Build image from Dockerfile
|
|
277
|
+
|
|
278
|
+
Options:
|
|
279
|
+
--path [path] Dockerfile path
|
|
280
|
+
--image-name [image-name] Set image name
|
|
281
|
+
--image-path [image-path] Set tar image path
|
|
282
|
+
--dockerfile-name [dockerfile-name] set Dockerfile name
|
|
283
|
+
--podman-save Export tar file from podman
|
|
284
|
+
--kind-load Import tar image to Kind cluster
|
|
285
|
+
--secrets Dockerfile env secrets
|
|
286
|
+
--secrets-path [secrets-path] Dockerfile custom path env secrets
|
|
287
|
+
--no-cache Build without using cache
|
|
288
|
+
-h, --help display help for command
|
|
289
|
+
|
|
290
|
+
```
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
### `dockerfile-pull-base-images` :
|
|
294
|
+
```
|
|
295
|
+
Usage: underpost dockerfile-pull-base-images [options]
|
|
296
|
+
|
|
297
|
+
Pull underpost dockerfile images requirements
|
|
298
|
+
|
|
299
|
+
Options:
|
|
300
|
+
-h, --help display help for command
|
|
301
|
+
|
|
302
|
+
```
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
### `install` :
|
|
306
|
+
```
|
|
307
|
+
Usage: underpost install [options]
|
|
308
|
+
|
|
309
|
+
Fast import underpost npm dependencies
|
|
310
|
+
|
|
311
|
+
Options:
|
|
312
|
+
-h, --help display help for command
|
|
313
|
+
|
|
314
|
+
```
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
### `db` :
|
|
318
|
+
```
|
|
319
|
+
Usage: underpost db [options] <deploy-list>
|
|
320
|
+
|
|
321
|
+
Manage databases
|
|
322
|
+
|
|
323
|
+
Arguments:
|
|
324
|
+
deploy-list Deploy id list, e.g. default-a,default-b
|
|
325
|
+
|
|
326
|
+
Options:
|
|
327
|
+
--import Import container backups from repositories
|
|
328
|
+
--export Export container backups to repositories
|
|
329
|
+
--pod-name <pod-name> Optional pod context
|
|
330
|
+
--collections <collections> Comma separated collections
|
|
331
|
+
--out-path <out-path> Custom out path backup
|
|
332
|
+
--drop Drop databases
|
|
333
|
+
--preserveUUID Preserve Ids
|
|
334
|
+
--git Upload to github
|
|
335
|
+
--hosts <hosts> Comma separated hosts
|
|
336
|
+
--paths <paths> Comma separated paths
|
|
337
|
+
--ns <ns-name> Optional name space context
|
|
338
|
+
-h, --help display help for command
|
|
339
|
+
|
|
340
|
+
```
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
### `script` :
|
|
344
|
+
```
|
|
345
|
+
Usage: underpost script [options] <operator> <script-name> [script-value]
|
|
346
|
+
|
|
347
|
+
Supports a number of built-in underpost global scripts and their preset life
|
|
348
|
+
cycle events as well as arbitrary scripts
|
|
349
|
+
|
|
350
|
+
Arguments:
|
|
351
|
+
operator Options: set,run,get
|
|
352
|
+
script-name Script name
|
|
353
|
+
script-value Literal command, or path
|
|
354
|
+
|
|
355
|
+
Options:
|
|
356
|
+
--itc Inside container execution context
|
|
357
|
+
--itc-path Inside container path options
|
|
358
|
+
--ns <ns-name> Options name space context
|
|
359
|
+
--pod-name <pod-name>
|
|
360
|
+
-h, --help display help for command
|
|
361
|
+
|
|
362
|
+
```
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
### `cron` :
|
|
366
|
+
```
|
|
367
|
+
Usage: underpost cron [options] [deploy-list] [job-list]
|
|
368
|
+
|
|
369
|
+
Cron jobs management
|
|
370
|
+
|
|
371
|
+
Arguments:
|
|
372
|
+
deploy-list Deploy id list, e.g. default-a,default-b
|
|
373
|
+
job-list Deploy id list, e.g. callback,updateDashboardData, for
|
|
374
|
+
default all available jobs
|
|
375
|
+
|
|
376
|
+
Options:
|
|
377
|
+
--itc Inside container execution context
|
|
378
|
+
--init Init cron jobs for cron job default deploy id
|
|
379
|
+
--git Upload to github
|
|
380
|
+
--dashboard-update Update dashboard cron data with current jobs config
|
|
381
|
+
-h, --help display help for command
|
|
382
|
+
|
|
383
|
+
```
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
### `fs` :
|
|
387
|
+
```
|
|
388
|
+
Usage: underpost fs [options] [path]
|
|
389
|
+
|
|
390
|
+
File storage management, for default upload file
|
|
391
|
+
|
|
392
|
+
Arguments:
|
|
393
|
+
path Absolute or relative directory
|
|
394
|
+
|
|
395
|
+
Options:
|
|
396
|
+
--rm Remove file
|
|
397
|
+
--git Current git changes
|
|
398
|
+
--recursive Upload files recursively
|
|
399
|
+
--deploy-id <deploy-id> Deploy configuration id
|
|
400
|
+
--pull Download file
|
|
401
|
+
--force Force action
|
|
402
|
+
--storage-file-path <storage-file-path> custom file storage path
|
|
403
|
+
-h, --help display help for command
|
|
404
|
+
|
|
405
|
+
```
|
|
406
|
+
|
|
407
|
+
|
|
408
|
+
### `test` :
|
|
409
|
+
```
|
|
410
|
+
Usage: underpost test [options] [deploy-list]
|
|
411
|
+
|
|
412
|
+
Manage Test, for default run current underpost default test
|
|
413
|
+
|
|
414
|
+
Arguments:
|
|
415
|
+
deploy-list Deploy id list, e.g. default-a,default-b
|
|
416
|
+
|
|
417
|
+
Options:
|
|
418
|
+
--itc Inside container execution context
|
|
419
|
+
--sh Copy to clipboard, container entrypoint shell
|
|
420
|
+
command
|
|
421
|
+
--logs Display container logs
|
|
422
|
+
--pod-name <pod-name>
|
|
423
|
+
--pod-status <pod-status>
|
|
424
|
+
--kind-type <kind-type>
|
|
425
|
+
-h, --help display help for command
|
|
426
|
+
|
|
427
|
+
```
|
|
428
|
+
|
|
429
|
+
|
|
430
|
+
### `monitor` :
|
|
431
|
+
```
|
|
432
|
+
Usage: underpost monitor [options] <deploy-id> [env]
|
|
433
|
+
|
|
434
|
+
Monitor health server management
|
|
435
|
+
|
|
436
|
+
Arguments:
|
|
437
|
+
deploy-id Deploy configuration id
|
|
438
|
+
env Optional environment, for default is development
|
|
439
|
+
|
|
440
|
+
Options:
|
|
441
|
+
--ms-interval <ms-interval> Custom ms interval delta time
|
|
442
|
+
--now Exec immediately monitor script
|
|
443
|
+
--single Disable recurrence
|
|
444
|
+
--replicas <replicas> Set custom number of replicas
|
|
445
|
+
--type <type> Set custom monitor type
|
|
446
|
+
--sync Sync with current proxy deployments proxy
|
|
447
|
+
traffic
|
|
448
|
+
-h, --help display help for command
|
|
449
|
+
|
|
450
|
+
```
|
|
451
|
+
|
package/conf.js
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import dotenv from 'dotenv';
|
|
2
|
+
|
|
3
|
+
dotenv.config();
|
|
4
|
+
|
|
5
|
+
const DefaultConf = /**/ {
|
|
2
6
|
client: {
|
|
3
7
|
default: {
|
|
4
8
|
metadata: {
|
|
@@ -75,58 +79,16 @@ const DefaultConf = {
|
|
|
75
79
|
],
|
|
76
80
|
},
|
|
77
81
|
views: [
|
|
78
|
-
{
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
ssr: 'Default',
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
path: '/settings',
|
|
92
|
-
client: 'Default',
|
|
93
|
-
ssr: 'Default',
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
path: '/log-in',
|
|
97
|
-
client: 'Default',
|
|
98
|
-
ssr: 'Default',
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
path: '/sign-up',
|
|
102
|
-
client: 'Default',
|
|
103
|
-
ssr: 'Default',
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
path: '/log-out',
|
|
107
|
-
client: 'Default',
|
|
108
|
-
ssr: 'Default',
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
path: '/account',
|
|
112
|
-
client: 'Default',
|
|
113
|
-
ssr: 'Default',
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
path: '/docs',
|
|
117
|
-
client: 'Default',
|
|
118
|
-
ssr: 'Default',
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
path: '/recover',
|
|
122
|
-
client: 'Default',
|
|
123
|
-
ssr: 'Default',
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
path: '/default-management',
|
|
127
|
-
client: 'Default',
|
|
128
|
-
ssr: 'Default',
|
|
129
|
-
},
|
|
82
|
+
{ path: '/', title: 'Home', client: 'Default', ssr: 'Default' },
|
|
83
|
+
{ path: '/home', title: 'Home', client: 'Default', ssr: 'Default' },
|
|
84
|
+
{ path: '/settings', client: 'Default', ssr: 'Default' },
|
|
85
|
+
{ path: '/log-in', client: 'Default', ssr: 'Default' },
|
|
86
|
+
{ path: '/sign-up', client: 'Default', ssr: 'Default' },
|
|
87
|
+
{ path: '/log-out', client: 'Default', ssr: 'Default' },
|
|
88
|
+
{ path: '/account', client: 'Default', ssr: 'Default' },
|
|
89
|
+
{ path: '/docs', client: 'Default', ssr: 'Default' },
|
|
90
|
+
{ path: '/recover', client: 'Default', ssr: 'Default' },
|
|
91
|
+
{ path: '/default-management', client: 'Default', ssr: 'Default' },
|
|
130
92
|
{ client: 'Default', ssr: 'Default', path: '/404', title: '404 Not Found' },
|
|
131
93
|
{ client: 'Default', ssr: 'Default', path: '/500', title: '500 Server Error' },
|
|
132
94
|
],
|
|
@@ -137,24 +99,15 @@ const DefaultConf = {
|
|
|
137
99
|
import_name: '@neodrag/vanilla',
|
|
138
100
|
import_name_build: '/dist/@neodrag-vanilla/index.js',
|
|
139
101
|
},
|
|
140
|
-
{
|
|
141
|
-
folder: './node_modules/@fortawesome/fontawesome-free',
|
|
142
|
-
public_folder: '/dist/fontawesome',
|
|
143
|
-
},
|
|
102
|
+
{ folder: './node_modules/@fortawesome/fontawesome-free', public_folder: '/dist/fontawesome' },
|
|
144
103
|
{
|
|
145
104
|
folder: './node_modules/sortablejs/modular',
|
|
146
105
|
public_folder: '/dist/sortablejs',
|
|
147
106
|
import_name: 'sortablejs',
|
|
148
107
|
import_name_build: '/dist/sortablejs/sortable.complete.esm.js',
|
|
149
108
|
},
|
|
150
|
-
{
|
|
151
|
-
|
|
152
|
-
public_folder: '/dist/validator',
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
folder: './node_modules/@loadingio/css-spinner/entries',
|
|
156
|
-
public_folder: '/dist/loadingio',
|
|
157
|
-
},
|
|
109
|
+
{ folder: './node_modules/validator', public_folder: '/dist/validator' },
|
|
110
|
+
{ folder: './node_modules/@loadingio/css-spinner/entries', public_folder: '/dist/loadingio' },
|
|
158
111
|
{
|
|
159
112
|
import_name: 'ag-grid-community',
|
|
160
113
|
import_name_build: '/dist/ag-grid-community/ag-grid-community.auto.complete.esm.min.js',
|
|
@@ -169,10 +122,7 @@ const DefaultConf = {
|
|
|
169
122
|
import_name: 'socket.io/client-dist/socket.io.esm.min.js',
|
|
170
123
|
import_name_build: '/dist/socket.io/socket.io.esm.min.js',
|
|
171
124
|
},
|
|
172
|
-
{
|
|
173
|
-
folder: './node_modules/peerjs/dist',
|
|
174
|
-
public_folder: '/dist/peerjs',
|
|
175
|
-
},
|
|
125
|
+
{ folder: './node_modules/peerjs/dist', public_folder: '/dist/peerjs' },
|
|
176
126
|
],
|
|
177
127
|
services: ['default', 'core', 'user', 'test', 'file'],
|
|
178
128
|
},
|
|
@@ -181,35 +131,12 @@ const DefaultConf = {
|
|
|
181
131
|
Default: {
|
|
182
132
|
head: ['Seo', 'Pwa', 'Css', 'DefaultScripts', 'Production'],
|
|
183
133
|
body: ['CacheControl', 'DefaultSplashScreen', '404', '500'],
|
|
184
|
-
mailer: {
|
|
185
|
-
userVerifyEmail: 'DefaultVerifyEmail',
|
|
186
|
-
userRecoverEmail: 'DefaultRecoverEmail',
|
|
187
|
-
},
|
|
134
|
+
mailer: { userVerifyEmail: 'DefaultVerifyEmail', userRecoverEmail: 'DefaultRecoverEmail' },
|
|
188
135
|
offline: [
|
|
189
|
-
{
|
|
190
|
-
|
|
191
|
-
title: 'No Network Connection',
|
|
192
|
-
client: 'NoNetworkConnection',
|
|
193
|
-
head: [],
|
|
194
|
-
body: [],
|
|
195
|
-
},
|
|
196
|
-
{
|
|
197
|
-
path: '/maintenance',
|
|
198
|
-
title: 'Server Maintenance',
|
|
199
|
-
client: 'Maintenance',
|
|
200
|
-
head: [],
|
|
201
|
-
body: [],
|
|
202
|
-
},
|
|
203
|
-
],
|
|
204
|
-
pages: [
|
|
205
|
-
{
|
|
206
|
-
path: '/test',
|
|
207
|
-
title: 'Test',
|
|
208
|
-
client: 'Test',
|
|
209
|
-
head: [],
|
|
210
|
-
body: [],
|
|
211
|
-
},
|
|
136
|
+
{ path: '/offline', title: 'No Network Connection', client: 'NoNetworkConnection', head: [], body: [] },
|
|
137
|
+
{ path: '/maintenance', title: 'Server Maintenance', client: 'Maintenance', head: [], body: [] },
|
|
212
138
|
],
|
|
139
|
+
pages: [{ path: '/test', title: 'Test', client: 'Test', head: [], body: [] }],
|
|
213
140
|
},
|
|
214
141
|
},
|
|
215
142
|
server: {
|
|
@@ -227,24 +154,14 @@ const DefaultConf = {
|
|
|
227
154
|
ws: 'core',
|
|
228
155
|
peer: true,
|
|
229
156
|
proxy: [80, 443],
|
|
230
|
-
db: {
|
|
231
|
-
provider: 'mongoose',
|
|
232
|
-
host: 'mongodb://127.0.0.1:27017',
|
|
233
|
-
name: 'default',
|
|
234
|
-
},
|
|
157
|
+
db: { provider: 'mongoose', host: 'mongodb://127.0.0.1:27017', name: 'default' },
|
|
235
158
|
mailer: {
|
|
236
|
-
sender: {
|
|
237
|
-
email: 'noreply@default.net',
|
|
238
|
-
name: 'Default',
|
|
239
|
-
},
|
|
159
|
+
sender: { email: 'noreply@default.net', name: 'Default' },
|
|
240
160
|
transport: {
|
|
241
161
|
host: 'smtp.default.com',
|
|
242
162
|
port: 465,
|
|
243
163
|
secure: true,
|
|
244
|
-
auth: {
|
|
245
|
-
user: 'noreply@default.net',
|
|
246
|
-
pass: '',
|
|
247
|
-
},
|
|
164
|
+
auth: { user: 'noreply@default.net', pass: '' },
|
|
248
165
|
},
|
|
249
166
|
},
|
|
250
167
|
},
|
|
@@ -262,35 +179,9 @@ const DefaultConf = {
|
|
|
262
179
|
},
|
|
263
180
|
},
|
|
264
181
|
cron: {
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
},
|
|
268
|
-
records: {
|
|
269
|
-
A: [
|
|
270
|
-
{
|
|
271
|
-
host: 'example.com',
|
|
272
|
-
dns: 'dondominio',
|
|
273
|
-
api_key: '???',
|
|
274
|
-
user: '???',
|
|
275
|
-
},
|
|
276
|
-
],
|
|
277
|
-
},
|
|
278
|
-
backups: [
|
|
279
|
-
{
|
|
280
|
-
deployGroupId: 'default-group',
|
|
281
|
-
},
|
|
282
|
-
],
|
|
283
|
-
jobs: {
|
|
284
|
-
dns: {
|
|
285
|
-
expression: '* * * * *',
|
|
286
|
-
enabled: true,
|
|
287
|
-
},
|
|
288
|
-
backups: {
|
|
289
|
-
expression: '0 1 * * *',
|
|
290
|
-
enabled: true,
|
|
291
|
-
},
|
|
292
|
-
},
|
|
182
|
+
records: { A: [{ host: 'example.com', dns: 'dondominio', api_key: '???', user: '???' }] },
|
|
183
|
+
jobs: { dns: { expression: '* * * * *', enabled: true }, backups: { expression: '0 1 * * *', enabled: true } },
|
|
293
184
|
},
|
|
294
|
-
};
|
|
185
|
+
}; /**/
|
|
295
186
|
|
|
296
187
|
export { DefaultConf };
|
package/docker-compose.yml
CHANGED
package/jsdoc.json
CHANGED