underpost 2.8.871 → 2.8.873

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.
Files changed (81) hide show
  1. package/.env.development +2 -1
  2. package/.env.production +2 -1
  3. package/.env.test +2 -1
  4. package/.github/workflows/ghpkg.ci.yml +1 -1
  5. package/.github/workflows/npmpkg.ci.yml +1 -1
  6. package/.github/workflows/pwa-microservices-template-page.cd.yml +1 -1
  7. package/.github/workflows/pwa-microservices-template-test.ci.yml +1 -1
  8. package/.github/workflows/release.cd.yml +2 -2
  9. package/README.md +66 -36
  10. package/bin/build.js +4 -0
  11. package/bin/deploy.js +4 -0
  12. package/cli.md +88 -87
  13. package/conf.js +2 -1
  14. package/manifests/deployment/dd-default-development/deployment.yaml +2 -2
  15. package/manifests/deployment/dd-test-development/deployment.yaml +138 -0
  16. package/manifests/deployment/dd-test-development/proxy.yaml +26 -0
  17. package/package.json +6 -3
  18. package/src/api/core/core.router.js +2 -1
  19. package/src/api/default/default.controller.js +6 -1
  20. package/src/api/default/default.router.js +6 -2
  21. package/src/api/default/default.service.js +10 -1
  22. package/src/api/file/file.router.js +2 -1
  23. package/src/api/test/test.router.js +1 -1
  24. package/src/api/user/postman_collection.json +216 -0
  25. package/src/api/user/user.controller.js +25 -60
  26. package/src/api/user/user.model.js +29 -7
  27. package/src/api/user/user.router.js +6 -3
  28. package/src/api/user/user.service.js +80 -32
  29. package/src/cli/baremetal.js +33 -3
  30. package/src/cli/cloud-init.js +11 -0
  31. package/src/cli/deploy.js +5 -2
  32. package/src/cli/index.js +1 -0
  33. package/src/cli/lxd.js +7 -0
  34. package/src/cli/repository.js +1 -0
  35. package/src/cli/run.js +18 -5
  36. package/src/cli/ssh.js +20 -6
  37. package/src/client/components/core/Account.js +2 -1
  38. package/src/client/components/core/AgGrid.js +30 -8
  39. package/src/client/components/core/Auth.js +98 -55
  40. package/src/client/components/core/CalendarCore.js +3 -4
  41. package/src/client/components/core/CommonJs.js +1 -2
  42. package/src/client/components/core/Content.js +2 -1
  43. package/src/client/components/core/Css.js +2 -1
  44. package/src/client/components/core/CssCore.js +2 -1
  45. package/src/client/components/core/Docs.js +4 -4
  46. package/src/client/components/core/FileExplorer.js +3 -3
  47. package/src/client/components/core/JoyStick.js +2 -2
  48. package/src/client/components/core/LoadingAnimation.js +2 -2
  49. package/src/client/components/core/LogIn.js +16 -23
  50. package/src/client/components/core/LogOut.js +5 -1
  51. package/src/client/components/core/Logger.js +4 -1
  52. package/src/client/components/core/Modal.js +17 -27
  53. package/src/client/components/core/ObjectLayerEngineModal.js +2 -1
  54. package/src/client/components/core/Pagination.js +207 -0
  55. package/src/client/components/core/Panel.js +3 -11
  56. package/src/client/components/core/PanelForm.js +6 -15
  57. package/src/client/components/core/Recover.js +2 -2
  58. package/src/client/components/core/Router.js +205 -33
  59. package/src/client/components/core/SignUp.js +1 -2
  60. package/src/client/components/core/Stream.js +1 -1
  61. package/src/client/components/core/VanillaJs.js +0 -83
  62. package/src/client/components/core/Worker.js +2 -2
  63. package/src/client/components/default/LogInDefault.js +0 -6
  64. package/src/client/components/default/LogOutDefault.js +0 -16
  65. package/src/client/components/default/MenuDefault.js +4 -3
  66. package/src/client/components/default/RoutesDefault.js +3 -2
  67. package/src/client/services/core/core.service.js +6 -2
  68. package/src/client/services/default/default.management.js +115 -18
  69. package/src/client/services/default/default.service.js +9 -4
  70. package/src/client/services/user/user.management.js +6 -0
  71. package/src/client/services/user/user.service.js +11 -4
  72. package/src/client/ssr/head/DefaultScripts.js +1 -0
  73. package/src/index.js +24 -2
  74. package/src/runtime/lampp/Lampp.js +89 -2
  75. package/src/runtime/xampp/Xampp.js +48 -1
  76. package/src/server/auth.js +518 -155
  77. package/src/server/conf.js +19 -1
  78. package/src/server/runtime.js +62 -221
  79. package/src/server/ssl.js +1 -2
  80. package/src/server/ssr.js +85 -0
  81. package/src/server/valkey.js +2 -1
package/cli.md CHANGED
@@ -1,47 +1,46 @@
1
- ## underpost ci/cd cli v2.8.871
1
+ ## underpost ci/cd cli v2.8.873
2
2
 
3
3
  ### Usage: `underpost [options] [command]`
4
-
5
- ```
6
- Options:
7
- -V, --version output the version number
8
- -h, --help display help for command
4
+ ```
5
+ Options:
6
+ -V, --version output the version number
7
+ -h, --help display help for command
9
8
 
10
9
  Commands:
11
- new [options] <app-name> Initializes a new Underpost project with a predefined structure.
12
- start [options] <deploy-id> [env] Initiates application servers, build pipelines, or other defined services based on the deployment ID.
13
- clone [options] <uri> Clones a specified GitHub repository into the current directory.
14
- pull [options] <path> <uri> Pulls the latest changes from a specified GitHub repository.
15
- cmt [options] <path> <commit-type> [module-tag] [message] Manages commits to a GitHub repository, supporting various commit types and options.
16
- push [options] <path> <uri> Pushes committed changes from a local repository to a remote GitHub repository.
17
- env <deploy-id> [env] Sets environment variables and configurations related to a specific deployment ID.
18
- config [options] <operator> [key] [value] Manages Underpost configurations using various operators.
19
- root Displays the root path of the npm installation.
20
- cluster [options] [pod-name] Manages Kubernetes clusters, defaulting to Kind cluster initialization.
21
- deploy [options] [deploy-list] [env] Manages application deployments, defaulting to deploying development pods.
22
- secret [options] <platform> Manages secrets for various platforms.
23
- dockerfile-image-build [options] Builds a Docker image from a specified Dockerfile with various options for naming, saving, and loading.
24
- dockerfile-pull-base-images [options] Pulls required Underpost Dockerfile base images and optionally loads them into clusters.
25
- install Quickly imports Underpost npm dependencies by copying them.
26
- db [options] <deploy-list> Manages database operations, including import, export, and collection management.
27
- metadata [options] [deploy-id] [host] [path] Manages cluster metadata operations, including import and export.
28
- script [options] <operator> <script-name> [script-value] Supports a variety of built-in Underpost global scripts, their preset lifecycle events, and arbitrary custom scripts.
29
- cron [options] [deploy-list] [job-list] Manages cron jobs, including initialization, execution, and configuration updates.
30
- fs [options] [path] Manages file storage, defaulting to file upload operations.
31
- test [options] [deploy-list] Manages and runs tests, defaulting to the current Underpost default test suite.
32
- monitor [options] <deploy-id> [env] Manages health server monitoring for specified deployments.
33
- ssh [options] Import and start ssh server and client based on current default deployment ID.
34
- run [options] <runner-id> [path] Runs a script from the specified path.
35
- lxd [options] Manages LXD containers and virtual machines.
36
- baremetal [options] [workflow-id] [hostname] [ip-address] Manages baremetal server operations, including installation, database setup, commissioning, and user management.
37
- help [command] display help for command
38
-
10
+ new [options] <app-name> Initializes a new Underpost project with a predefined structure.
11
+ start [options] <deploy-id> [env] Initiates application servers, build pipelines, or other defined services based on the deployment ID.
12
+ clone [options] <uri> Clones a specified GitHub repository into the current directory.
13
+ pull [options] <path> <uri> Pulls the latest changes from a specified GitHub repository.
14
+ cmt [options] <path> <commit-type> [module-tag] [message] Manages commits to a GitHub repository, supporting various commit types and options.
15
+ push [options] <path> <uri> Pushes committed changes from a local repository to a remote GitHub repository.
16
+ env <deploy-id> [env] Sets environment variables and configurations related to a specific deployment ID.
17
+ config [options] <operator> [key] [value] Manages Underpost configurations using various operators.
18
+ root Displays the root path of the npm installation.
19
+ cluster [options] [pod-name] Manages Kubernetes clusters, defaulting to Kind cluster initialization.
20
+ deploy [options] [deploy-list] [env] Manages application deployments, defaulting to deploying development pods.
21
+ secret [options] <platform> Manages secrets for various platforms.
22
+ dockerfile-image-build [options] Builds a Docker image from a specified Dockerfile with various options for naming, saving, and loading.
23
+ dockerfile-pull-base-images [options] Pulls required Underpost Dockerfile base images and optionally loads them into clusters.
24
+ install Quickly imports Underpost npm dependencies by copying them.
25
+ db [options] <deploy-list> Manages database operations, including import, export, and collection management.
26
+ metadata [options] [deploy-id] [host] [path] Manages cluster metadata operations, including import and export.
27
+ script [options] <operator> <script-name> [script-value] Supports a variety of built-in Underpost global scripts, their preset lifecycle events, and arbitrary custom scripts.
28
+ cron [options] [deploy-list] [job-list] Manages cron jobs, including initialization, execution, and configuration updates.
29
+ fs [options] [path] Manages file storage, defaulting to file upload operations.
30
+ test [options] [deploy-list] Manages and runs tests, defaulting to the current Underpost default test suite.
31
+ monitor [options] <deploy-id> [env] Manages health server monitoring for specified deployments.
32
+ ssh [options] Import and start ssh server and client based on current default deployment ID.
33
+ run [options] <runner-id> [path] Runs a script from the specified path.
34
+ lxd [options] Manages LXD containers and virtual machines.
35
+ baremetal [options] [workflow-id] [hostname] [ip-address] Manages baremetal server operations, including installation, database setup, commissioning, and user management.
36
+ help [command] display help for command
37
+
39
38
  ```
40
39
 
41
40
  ## Commands:
41
+
42
42
 
43
43
  ### `new` :
44
-
45
44
  ```
46
45
  Usage: underpost new [options] <app-name>
47
46
 
@@ -54,11 +53,11 @@ Options:
54
53
  --deploy-id Crete deploy ID conf env files
55
54
  --dev Sets the development cli context
56
55
  -h, --help display help for command
57
-
56
+
58
57
  ```
58
+
59
59
 
60
60
  ### `start` :
61
-
62
61
  ```
63
62
  Usage: underpost start [options] <deploy-id> [env]
64
63
 
@@ -74,11 +73,11 @@ Options:
74
73
  --run Starts application servers and monitors their health.
75
74
  --build Triggers the client-side application build process.
76
75
  -h, --help display help for command
77
-
76
+
78
77
  ```
78
+
79
79
 
80
80
  ### `clone` :
81
-
82
81
  ```
83
82
  Usage: underpost clone [options] <uri>
84
83
 
@@ -91,11 +90,11 @@ Options:
91
90
  --bare Performs a bare clone, downloading only the .git files.
92
91
  -g8 Uses the g8 repository extension for cloning.
93
92
  -h, --help display help for command
94
-
93
+
95
94
  ```
95
+
96
96
 
97
97
  ### `pull` :
98
-
99
98
  ```
100
99
  Usage: underpost pull [options] <path> <uri>
101
100
 
@@ -109,11 +108,11 @@ Arguments:
109
108
  Options:
110
109
  -g8 Uses the g8 repository extension for pulling.
111
110
  -h, --help display help for command
112
-
111
+
113
112
  ```
113
+
114
114
 
115
115
  ### `cmt` :
116
-
117
116
  ```
118
117
  Usage: underpost cmt [options] <path> <commit-type> [module-tag] [message]
119
118
 
@@ -133,11 +132,11 @@ Options:
133
132
  --copy Copies the generated commit message to the clipboard.
134
133
  --info Displays information about available commit types.
135
134
  -h, --help display help for command
136
-
135
+
137
136
  ```
137
+
138
138
 
139
139
  ### `push` :
140
-
141
140
  ```
142
141
  Usage: underpost push [options] <path> <uri>
143
142
 
@@ -151,11 +150,11 @@ Options:
151
150
  -f Forces the push, overwriting the remote repository history.
152
151
  -g8 Uses the g8 repository extension for pushing.
153
152
  -h, --help display help for command
154
-
153
+
155
154
  ```
155
+
156
156
 
157
157
  ### `env` :
158
-
159
158
  ```
160
159
  Usage: underpost env [options] <deploy-id> [env]
161
160
 
@@ -170,11 +169,11 @@ Arguments:
170
169
 
171
170
  Options:
172
171
  -h, --help display help for command
173
-
172
+
174
173
  ```
174
+
175
175
 
176
176
  ### `config` :
177
-
178
177
  ```
179
178
  Usage: underpost config [options] <operator> [key] [value]
180
179
 
@@ -189,11 +188,11 @@ Arguments:
189
188
  Options:
190
189
  --plain Prints the configuration value in plain text.
191
190
  -h, --help display help for command
192
-
191
+
193
192
  ```
193
+
194
194
 
195
195
  ### `root` :
196
-
197
196
  ```
198
197
  Usage: underpost root [options]
199
198
 
@@ -201,11 +200,11 @@ Displays the root path of the npm installation.
201
200
 
202
201
  Options:
203
202
  -h, --help display help for command
204
-
203
+
205
204
  ```
205
+
206
206
 
207
207
  ### `cluster` :
208
-
209
208
  ```
210
209
  Usage: underpost cluster [options] [pod-name]
211
210
 
@@ -262,11 +261,11 @@ Options:
262
261
  --k3s Initializes the cluster using K3s (Lightweight
263
262
  Kubernetes).
264
263
  -h, --help display help for command
265
-
264
+
266
265
  ```
266
+
267
267
 
268
268
  ### `deploy` :
269
-
270
269
  ```
271
270
  Usage: underpost deploy [options] [deploy-list] [env]
272
271
 
@@ -299,6 +298,7 @@ Options:
299
298
  secrets.
300
299
  --replicas <replicas> Sets a custom number of replicas for
301
300
  deployments.
301
+ --image <image> Sets a custom image for deployments.
302
302
  --versions <deployment-versions> A comma-separated list of custom deployment
303
303
  versions.
304
304
  --traffic <traffic-versions> A comma-separated list of custom deployment
@@ -312,11 +312,11 @@ Options:
312
312
  deployment operations.
313
313
  --restore-hosts Restores default `/etc/hosts` entries.
314
314
  -h, --help display help for command
315
-
315
+
316
316
  ```
317
+
317
318
 
318
319
  ### `secret` :
319
-
320
320
  ```
321
321
  Usage: underpost secret [options] <platform>
322
322
 
@@ -334,11 +334,11 @@ Options:
334
334
  --list Lists all available secrets for the
335
335
  platform.
336
336
  -h, --help display help for command
337
-
337
+
338
338
  ```
339
+
339
340
 
340
341
  ### `dockerfile-image-build` :
341
-
342
342
  ```
343
343
  Usage: underpost dockerfile-image-build [options]
344
344
 
@@ -365,11 +365,11 @@ Options:
365
365
  cache.
366
366
  --k3s-load Loads the image into a K3s cluster.
367
367
  -h, --help display help for command
368
-
368
+
369
369
  ```
370
+
370
371
 
371
372
  ### `dockerfile-pull-base-images` :
372
-
373
373
  ```
374
374
  Usage: underpost dockerfile-pull-base-images [options]
375
375
 
@@ -383,11 +383,11 @@ Options:
383
383
  --version Sets a custom version for the base images.
384
384
  --k3s-load Loads the image into a K3s cluster.
385
385
  -h, --help display help for command
386
-
386
+
387
387
  ```
388
+
388
389
 
389
390
  ### `install` :
390
-
391
391
  ```
392
392
  Usage: underpost install [options]
393
393
 
@@ -395,11 +395,11 @@ Quickly imports Underpost npm dependencies by copying them.
395
395
 
396
396
  Options:
397
397
  -h, --help display help for command
398
-
398
+
399
399
  ```
400
+
400
401
 
401
402
  ### `db` :
402
-
403
403
  ```
404
404
  Usage: underpost db [options] <deploy-list>
405
405
 
@@ -429,11 +429,11 @@ Options:
429
429
  --ns <ns-name> Optional: Specifies the namespace context for
430
430
  database operations.
431
431
  -h, --help display help for command
432
-
432
+
433
433
  ```
434
+
434
435
 
435
436
  ### `metadata` :
436
-
437
437
  ```
438
438
  Usage: underpost metadata [options] [deploy-id] [host] [path]
439
439
 
@@ -452,11 +452,11 @@ Options:
452
452
  --generate Generate cluster metadata
453
453
  --itc Apply under container execution context
454
454
  -h, --help display help for command
455
-
455
+
456
456
  ```
457
+
457
458
 
458
459
  ### `script` :
459
-
460
460
  ```
461
461
  Usage: underpost script [options] <operator> <script-name> [script-value]
462
462
 
@@ -478,11 +478,11 @@ Options:
478
478
  execution.
479
479
  --pod-name <pod-name> Optional: Specifies the pod name for script execution.
480
480
  -h, --help display help for command
481
-
481
+
482
482
  ```
483
+
483
484
 
484
485
  ### `cron` :
485
-
486
486
  ```
487
487
  Usage: underpost cron [options] [deploy-list] [job-list]
488
488
 
@@ -500,11 +500,11 @@ Options:
500
500
  --init Initializes cron jobs for the default deployment ID.
501
501
  --git Uploads cron job configurations to GitHub.
502
502
  -h, --help display help for command
503
-
503
+
504
504
  ```
505
+
505
506
 
506
507
  ### `fs` :
507
-
508
508
  ```
509
509
  Usage: underpost fs [options] [path]
510
510
 
@@ -522,11 +522,11 @@ Options:
522
522
  --force Forces the action, overriding any warnings or conflicts.
523
523
  --storage-file-path <storage-file-path> Specifies a custom file storage path.
524
524
  -h, --help display help for command
525
-
525
+
526
526
  ```
527
+
527
528
 
528
529
  ### `test` :
529
-
530
530
  ```
531
531
  Usage: underpost test [options] [deploy-list]
532
532
 
@@ -548,11 +548,11 @@ Options:
548
548
  --kind-type <kind-type> Optional: Specifies the Kind cluster type for
549
549
  tests.
550
550
  -h, --help display help for command
551
-
551
+
552
552
  ```
553
+
553
554
 
554
555
  ### `monitor` :
555
-
556
556
  ```
557
557
  Usage: underpost monitor [options] <deploy-id> [env]
558
558
 
@@ -575,11 +575,11 @@ Options:
575
575
  --sync Synchronizes with current proxy deployments and
576
576
  traffic configurations.
577
577
  -h, --help display help for command
578
-
578
+
579
579
  ```
580
+
580
581
 
581
582
  ### `ssh` :
582
-
583
583
  ```
584
584
  Usage: underpost ssh [options]
585
585
 
@@ -589,18 +589,18 @@ Options:
589
589
  --generate Generates new ssh credential and stores it in current private
590
590
  keys file storage.
591
591
  -h, --help display help for command
592
-
592
+
593
593
  ```
594
+
594
595
 
595
596
  ### `run` :
596
-
597
597
  ```
598
598
  Usage: underpost run [options] <runner-id> [path]
599
599
 
600
600
  Runs a script from the specified path.
601
601
 
602
602
  Arguments:
603
- runner-id The runner ID to run. Options: spark-template, rmi, kill, secret, underpost-config, gpu-env, tf-gpu-test, dev-cluster, ssh-cluster-info, cyberia-ide, engine-ide, template-deploy, clean, pull, release-deploy, ssh-deploy, ide, dev-client, dev-api, router-sync, monitor, db-client, promote, metrics, cluster, deploy, tf-vae-test, deploy-job.
603
+ runner-id The runner ID to run. Options: spark-template, rmi, kill, secret, underpost-config, gpu-env, tf-gpu-test, dev-cluster, ssh-cluster-info, cyberia-ide, engine-ide, template-deploy, clean, pull, release-deploy, ssh-deploy, ide, dev-client, dev-api, sync, ls-deployments, monitor, db-client, promote, metrics, cluster, deploy, tf-vae-test, deploy-job.
604
604
  path The absolute or relative directory path where the script is located.
605
605
 
606
606
  Options:
@@ -615,11 +615,11 @@ Options:
615
615
  --container-name <container-name> Optional: Specifies the container name for test execution.
616
616
  --namespace <namespace> Optional: Specifies the namespace for test execution.
617
617
  -h, --help display help for command
618
-
618
+
619
619
  ```
620
+
620
621
 
621
622
  ### `lxd` :
622
-
623
623
  ```
624
624
  Usage: underpost lxd [options]
625
625
 
@@ -660,11 +660,11 @@ Options:
660
660
  --auto-expose-k8s-ports <vm-id> Automatically exposes common Kubernetes
661
661
  ports for the specified VM.
662
662
  -h, --help display help for command
663
-
663
+
664
664
  ```
665
+
665
666
 
666
667
  ### `baremetal` :
667
-
668
668
  ```
669
669
  Usage: underpost baremetal [options] [workflow-id] [hostname] [ip-address]
670
670
 
@@ -698,5 +698,6 @@ Options:
698
698
  baremetal operations.
699
699
  --ls Lists available boot resources and machines.
700
700
  -h, --help display help for command
701
-
701
+
702
702
  ```
703
+
package/conf.js CHANGED
@@ -63,6 +63,7 @@ const DefaultConf = /**/ {
63
63
  'Alert',
64
64
  '404',
65
65
  '500',
66
+ 'Pagination',
66
67
  ],
67
68
  default: [
68
69
  'MenuDefault',
@@ -110,7 +111,7 @@ const DefaultConf = /**/ {
110
111
  { folder: './node_modules/@loadingio/css-spinner/entries', public_folder: '/dist/loadingio' },
111
112
  {
112
113
  import_name: 'ag-grid-community',
113
- import_name_build: '/dist/ag-grid-community/ag-grid-community.auto.complete.esm.min.js',
114
+ import_name_build: '/dist/ag-grid-community/ag-grid-community.min.js',
114
115
  folder: './node_modules/ag-grid-community/dist',
115
116
  public_folder: '/dist/ag-grid-community',
116
117
  styles: './node_modules/ag-grid-community/styles',
@@ -17,7 +17,7 @@ spec:
17
17
  spec:
18
18
  containers:
19
19
  - name: dd-default-development-blue
20
- image: localhost/rockylinux9-underpost:v2.8.871
20
+ image: localhost/rockylinux9-underpost:v2.8.873
21
21
  # resources:
22
22
  # requests:
23
23
  # memory: "124Ki"
@@ -100,7 +100,7 @@ spec:
100
100
  spec:
101
101
  containers:
102
102
  - name: dd-default-development-green
103
- image: localhost/rockylinux9-underpost:v2.8.871
103
+ image: localhost/rockylinux9-underpost:v2.8.873
104
104
  # resources:
105
105
  # requests:
106
106
  # memory: "124Ki"
@@ -0,0 +1,138 @@
1
+ ---
2
+ apiVersion: apps/v1
3
+ kind: Deployment
4
+ metadata:
5
+ name: dd-test-development-blue
6
+ labels:
7
+ app: dd-test-development-blue
8
+ spec:
9
+ replicas: 1
10
+ selector:
11
+ matchLabels:
12
+ app: dd-test-development-blue
13
+ template:
14
+ metadata:
15
+ labels:
16
+ app: dd-test-development-blue
17
+ spec:
18
+ containers:
19
+ - name: dd-test-development-blue
20
+ image: localhost/rockylinux9-underpost:v2.8.873
21
+ # resources:
22
+ # requests:
23
+ # memory: "96294Ki"
24
+ # cpu: "75m"
25
+ # limits:
26
+ # memory: "1540709Ki"
27
+ # cpu: "1200m"
28
+ command:
29
+ - /bin/sh
30
+ - -c
31
+ - >
32
+ npm install -g npm@11.2.0 &&
33
+ npm install -g underpost &&
34
+ underpost secret underpost --create-from-file /etc/config/.env.development &&
35
+ underpost start --build --run dd-test development
36
+ volumeMounts:
37
+ - name: config-volume
38
+ mountPath: /etc/config
39
+ volumes:
40
+ - name: config-volume
41
+ configMap:
42
+ name: underpost-config
43
+ ---
44
+ apiVersion: v1
45
+ kind: Service
46
+ metadata:
47
+ name: dd-test-development-blue-service
48
+ spec:
49
+ selector:
50
+ app: dd-test-development-blue
51
+ ports:
52
+ - name: 'tcp-4021'
53
+ protocol: TCP
54
+ port: 4021
55
+ targetPort: 4021
56
+ - name: 'udp-4021'
57
+ protocol: UDP
58
+ port: 4021
59
+ targetPort: 4021
60
+
61
+ - name: 'tcp-4022'
62
+ protocol: TCP
63
+ port: 4022
64
+ targetPort: 4022
65
+ - name: 'udp-4022'
66
+ protocol: UDP
67
+ port: 4022
68
+ targetPort: 4022
69
+ type: LoadBalancer
70
+ ---
71
+ apiVersion: apps/v1
72
+ kind: Deployment
73
+ metadata:
74
+ name: dd-test-development-green
75
+ labels:
76
+ app: dd-test-development-green
77
+ spec:
78
+ replicas: 1
79
+ selector:
80
+ matchLabels:
81
+ app: dd-test-development-green
82
+ template:
83
+ metadata:
84
+ labels:
85
+ app: dd-test-development-green
86
+ spec:
87
+ containers:
88
+ - name: dd-test-development-green
89
+ image: localhost/rockylinux9-underpost:v2.8.873
90
+ # resources:
91
+ # requests:
92
+ # memory: "96294Ki"
93
+ # cpu: "75m"
94
+ # limits:
95
+ # memory: "1540709Ki"
96
+ # cpu: "1200m"
97
+ command:
98
+ - /bin/sh
99
+ - -c
100
+ - >
101
+ npm install -g npm@11.2.0 &&
102
+ npm install -g underpost &&
103
+ underpost secret underpost --create-from-file /etc/config/.env.development &&
104
+ underpost start --build --run dd-test development
105
+ volumeMounts:
106
+ - name: config-volume
107
+ mountPath: /etc/config
108
+ volumes:
109
+ - name: config-volume
110
+ configMap:
111
+ name: underpost-config
112
+ ---
113
+ apiVersion: v1
114
+ kind: Service
115
+ metadata:
116
+ name: dd-test-development-green-service
117
+ spec:
118
+ selector:
119
+ app: dd-test-development-green
120
+ ports:
121
+ - name: 'tcp-4021'
122
+ protocol: TCP
123
+ port: 4021
124
+ targetPort: 4021
125
+ - name: 'udp-4021'
126
+ protocol: UDP
127
+ port: 4021
128
+ targetPort: 4021
129
+
130
+ - name: 'tcp-4022'
131
+ protocol: TCP
132
+ port: 4022
133
+ targetPort: 4022
134
+ - name: 'udp-4022'
135
+ protocol: UDP
136
+ port: 4022
137
+ targetPort: 4022
138
+ type: LoadBalancer
@@ -0,0 +1,26 @@
1
+
2
+ ---
3
+ apiVersion: projectcontour.io/v1
4
+ kind: HTTPProxy
5
+ metadata:
6
+ name: test.nexodev.org
7
+ spec:
8
+ virtualhost:
9
+ fqdn: test.nexodev.org
10
+ routes:
11
+ - conditions:
12
+ - prefix: /
13
+ enableWebsockets: true
14
+ services:
15
+ - name: dd-test-development-blue-service
16
+ port: 4021
17
+ weight: 100
18
+
19
+ - conditions:
20
+ - prefix: /peer
21
+ enableWebsockets: true
22
+ services:
23
+ - name: dd-test-development-blue-service
24
+ port: 4022
25
+ weight: 100
26
+
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "type": "module",
3
3
  "main": "src/index.js",
4
4
  "name": "underpost",
5
- "version": "2.8.871",
5
+ "version": "2.8.873",
6
6
  "description": "pwa api rest template",
7
7
  "scripts": {
8
8
  "start": "env-cmd -f .env.production node --max-old-space-size=8192 src/server",
@@ -54,7 +54,7 @@
54
54
  "@loadingio/css-spinner": "^2.0.2",
55
55
  "@neodrag/vanilla": "^2.0.3",
56
56
  "adm-zip": "^0.5.10",
57
- "ag-grid-community": "31.0.0",
57
+ "ag-grid-community": "^31.3.4",
58
58
  "axios": "^1.5.1",
59
59
  "chai": "^5.1.0",
60
60
  "clean-jsdoc-theme": "^4.3.0",
@@ -63,6 +63,7 @@
63
63
  "colors": "^1.4.0",
64
64
  "commander": "^12.1.0",
65
65
  "compression": "^1.7.4",
66
+ "cookie-parser": "^1.4.7",
66
67
  "cors": "^2.8.5",
67
68
  "d3": "^7.9.0",
68
69
  "dotenv": "^16.3.1",
@@ -70,9 +71,12 @@
70
71
  "env-cmd": "^10.1.0",
71
72
  "express": "^4.18.2",
72
73
  "express-fileupload": "^1.4.3",
74
+ "express-rate-limit": "^8.1.0",
75
+ "express-slow-down": "^3.0.0",
73
76
  "favicons": "^7.2.0",
74
77
  "fs-extra": "^11.1.1",
75
78
  "fullcalendar": "^6.1.15",
79
+ "helmet": "^8.1.0",
76
80
  "html-minifier-terser": "^7.2.0",
77
81
  "http-proxy-middleware": "^2.0.6",
78
82
  "ignore-walk": "^6.0.4",
@@ -87,7 +91,6 @@
87
91
  "morgan": "^1.10.0",
88
92
  "nodemailer": "^6.9.9",
89
93
  "nodemon": "^3.0.1",
90
- "pathfinding": "^0.4.18",
91
94
  "peer": "^1.0.2",
92
95
  "peerjs": "^1.5.2",
93
96
  "prom-client": "^15.1.2",