cyberia 3.0.3 → 3.1.3
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/{.env.production → .env.example} +20 -2
- package/.github/workflows/engine-cyberia.cd.yml +41 -10
- package/.github/workflows/engine-cyberia.ci.yml +53 -14
- package/.github/workflows/ghpkg.ci.yml +1 -1
- package/.github/workflows/gitlab.ci.yml +1 -1
- package/.github/workflows/hardhat.ci.yml +82 -0
- package/.github/workflows/npmpkg.ci.yml +37 -8
- package/.github/workflows/publish.ci.yml +5 -5
- package/.github/workflows/publish.cyberia.ci.yml +5 -5
- package/.github/workflows/pwa-microservices-template-page.cd.yml +3 -3
- package/.github/workflows/pwa-microservices-template-test.ci.yml +1 -1
- package/.github/workflows/release.cd.yml +3 -2
- package/.vscode/extensions.json +9 -8
- package/.vscode/settings.json +3 -2
- package/CHANGELOG.md +211 -1
- package/CLI-HELP.md +78 -53
- package/WHITE-PAPER.md +1540 -0
- package/bin/build.js +16 -10
- package/bin/cyberia.js +861 -4
- package/bin/deploy.js +103 -270
- package/bin/file.js +2 -1
- package/bin/index.js +861 -4
- package/bin/vs.js +3 -3
- package/conf.js +105 -97
- package/deployment.yaml +148 -4
- package/hardhat/.env.example +31 -0
- package/hardhat/README.md +531 -0
- package/hardhat/WHITE-PAPER.md +1540 -0
- package/hardhat/contracts/ObjectLayerToken.sol +391 -0
- package/hardhat/deployments/.gitkeep +0 -0
- package/hardhat/deployments/hardhat-ObjectLayerToken.json +11 -0
- package/hardhat/hardhat.config.js +136 -0
- package/hardhat/ignition/modules/ObjectLayerToken.js +21 -0
- package/hardhat/networks/besu-object-layer.network.json +138 -0
- package/hardhat/package-lock.json +7628 -0
- package/hardhat/package.json +45 -0
- package/hardhat/scripts/deployObjectLayerToken.js +98 -0
- package/hardhat/test/ObjectLayerToken.js +590 -0
- package/jsdoc.dd-cyberia.json +59 -0
- package/jsdoc.json +20 -13
- package/manifests/cronjobs/dd-cron/dd-cron-backup.yaml +1 -1
- package/manifests/cronjobs/dd-cron/dd-cron-dns.yaml +1 -1
- package/manifests/deployment/dd-cyberia-development/deployment.yaml +490 -0
- package/manifests/deployment/dd-cyberia-development/proxy.yaml +261 -0
- package/manifests/deployment/dd-cyberia-development/pv-pvc.yaml +132 -0
- package/manifests/deployment/dd-default-development/deployment.yaml +2 -2
- package/manifests/deployment/dd-test-development/deployment.yaml +52 -52
- package/manifests/deployment/dd-test-development/proxy.yaml +4 -4
- package/manifests/pv-pvc-dd.yaml +1 -1
- package/package.json +50 -44
- package/proxy.yaml +79 -7
- package/pv-pvc.yaml +132 -0
- package/scripts/k3s-node-setup.sh +1 -1
- package/scripts/ports-ls.sh +2 -0
- package/src/api/atlas-sprite-sheet/atlas-sprite-sheet.controller.js +3 -1
- package/src/api/atlas-sprite-sheet/atlas-sprite-sheet.model.js +1 -2
- package/src/api/document/document.service.js +1 -1
- package/src/api/file/file.controller.js +3 -1
- package/src/api/file/file.service.js +28 -5
- package/src/api/ipfs/ipfs.service.js +2 -2
- package/src/api/object-layer/object-layer.controller.js +6 -2
- package/src/api/object-layer/object-layer.model.js +12 -8
- package/src/api/object-layer/object-layer.router.js +668 -42
- package/src/api/object-layer/object-layer.service.js +6 -7
- package/src/api/object-layer-render-frames/object-layer-render-frames.model.js +1 -2
- package/src/api/user/user.router.js +10 -5
- package/src/api/user/user.service.js +7 -7
- package/src/cli/baremetal.js +6 -10
- package/src/cli/cloud-init.js +0 -3
- package/src/cli/db.js +54 -71
- package/src/cli/deploy.js +64 -12
- package/src/cli/env.js +5 -5
- package/src/cli/fs.js +0 -2
- package/src/cli/image.js +0 -3
- package/src/cli/index.js +35 -13
- package/src/cli/monitor.js +5 -6
- package/src/cli/repository.js +329 -46
- package/src/cli/run.js +180 -120
- package/src/cli/secrets.js +1 -3
- package/src/cli/ssh.js +1 -1
- package/src/client/Itemledger.index.js +1 -959
- package/src/client/components/core/AgGrid.js +20 -5
- package/src/client/components/core/Alert.js +2 -2
- package/src/client/components/core/Content.js +22 -3
- package/src/client/components/core/Docs.js +30 -6
- package/src/client/components/core/FileExplorer.js +71 -4
- package/src/client/components/core/Input.js +1 -1
- package/src/client/components/core/Modal.js +20 -6
- package/src/client/components/core/RichText.js +1 -2
- package/src/client/components/cyberia-portal/CommonCyberiaPortal.js +1 -0
- package/src/client/components/cyberia-portal/CssCyberiaPortal.js +44 -2
- package/src/client/components/cyberia-portal/LogInCyberiaPortal.js +0 -1
- package/src/client/components/cyberia-portal/MenuCyberiaPortal.js +64 -2
- package/src/client/components/cyberia-portal/RoutesCyberiaPortal.js +1 -0
- package/src/client/components/underpost/CssUnderpost.js +59 -0
- package/src/client/components/underpost/LogInUnderpost.js +3 -0
- package/src/client/components/underpost/LogOutUnderpost.js +2 -0
- package/src/client/components/underpost/MenuUnderpost.js +99 -13
- package/src/client/components/underpost/RoutesUnderpost.js +2 -0
- package/src/client/public/cryptokoyn/assets/logo/base-icon.png +0 -0
- package/src/client/public/cryptokoyn/browserconfig.xml +12 -0
- package/src/client/public/cryptokoyn/microdata.json +85 -0
- package/src/client/public/cryptokoyn/site.webmanifest +57 -0
- package/src/client/public/cryptokoyn/sitemap +3 -3
- package/src/client/public/default/sitemap +3 -3
- package/src/client/public/itemledger/browserconfig.xml +2 -2
- package/src/client/public/itemledger/manifest.webmanifest +4 -4
- package/src/client/public/itemledger/microdata.json +71 -0
- package/src/client/public/itemledger/sitemap +3 -3
- package/src/client/public/itemledger/yandex-browser-manifest.json +2 -2
- package/src/client/public/test/sitemap +3 -3
- package/src/client/ssr/body/404.js +15 -11
- package/src/client/ssr/body/500.js +15 -11
- package/src/client/ssr/body/SwaggerDarkMode.js +285 -0
- package/src/client/ssr/head/PwaItemledger.js +60 -0
- package/src/client/ssr/offline/NoNetworkConnection.js +11 -10
- package/src/client/ssr/pages/Test.js +11 -10
- package/src/client.build.js +0 -3
- package/src/client.dev.js +0 -3
- package/src/db/DataBaseProvider.js +17 -2
- package/src/db/mariadb/MariaDB.js +14 -9
- package/src/db/mongo/MongooseDB.js +17 -1
- package/src/index.js +1 -1
- package/src/proxy.js +0 -3
- package/src/runtime/express/Express.js +15 -9
- package/src/runtime/lampp/Lampp.js +6 -13
- package/src/server/auth.js +12 -14
- package/src/server/backup.js +2 -3
- package/src/server/besu-genesis-generator.js +1630 -0
- package/src/server/client-build-docs.js +126 -17
- package/src/server/client-build-live.js +9 -18
- package/src/server/client-build.js +203 -75
- package/src/server/client-dev-server.js +14 -13
- package/src/server/conf.js +376 -164
- package/src/server/cron.js +2 -1
- package/src/server/dns.js +28 -12
- package/src/server/downloader.js +0 -2
- package/src/server/logger.js +27 -9
- package/src/server/object-layer.js +79 -6
- package/src/server/peer.js +0 -2
- package/src/server/process.js +1 -50
- package/src/server/proxy.js +4 -8
- package/src/server/runtime.js +5 -8
- package/src/server/ssr.js +0 -3
- package/src/server/start.js +19 -12
- package/src/server/tls.js +0 -2
- package/src/server.js +0 -4
- package/.env.development +0 -43
- package/.env.test +0 -43
- package/hardhat/contracts/CryptoKoyn.sol +0 -59
- package/hardhat/contracts/ItemLedger.sol +0 -73
- package/hardhat/contracts/Lock.sol +0 -34
- package/hardhat/hardhat.config.cjs +0 -45
- package/hardhat/ignition/modules/Lock.js +0 -18
- package/hardhat/networks/cryptokoyn-itemledger.network.json +0 -29
- package/hardhat/scripts/deployCryptokoyn.cjs +0 -25
- package/hardhat/scripts/deployItemledger.cjs +0 -25
- package/hardhat/test/Lock.js +0 -126
- package/hardhat/white-paper.md +0 -581
- package/white-paper.md +0 -581
package/bin/vs.js
CHANGED
|
@@ -5,10 +5,9 @@ import { loggerFactory } from '../src/server/logger.js';
|
|
|
5
5
|
const logger = loggerFactory(import.meta);
|
|
6
6
|
|
|
7
7
|
const vsCodeRootPath = '/root/.vscode-root';
|
|
8
|
-
const
|
|
8
|
+
const vsConfigRootPath = '/root/.config/Code';
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
// const vsProgram = 'windsurf';
|
|
10
|
+
const vsProgram = 'code';
|
|
12
11
|
|
|
13
12
|
switch (process.argv[2]) {
|
|
14
13
|
case 'info': {
|
|
@@ -66,6 +65,7 @@ switch (process.argv[2]) {
|
|
|
66
65
|
|
|
67
66
|
case 'clean': {
|
|
68
67
|
shellExec(`sudo rm -rf ${vsCodeRootPath}/*`);
|
|
68
|
+
shellExec(`sudo rn -rf ${vsConfigRootPath}`);
|
|
69
69
|
break;
|
|
70
70
|
}
|
|
71
71
|
default:
|
package/conf.js
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import dotenv from 'dotenv';
|
|
2
|
-
|
|
3
|
-
dotenv.config();
|
|
4
|
-
|
|
5
1
|
const DefaultConf = /**/ {
|
|
6
2
|
client: {
|
|
7
3
|
underpost: {
|
|
@@ -94,6 +90,8 @@ const DefaultConf = /**/ {
|
|
|
94
90
|
{ path: '/account', client: 'Underpost', ssr: 'Underpost' },
|
|
95
91
|
{ path: '/u', client: 'Underpost', ssr: 'Underpost' },
|
|
96
92
|
{ path: '/recover', client: 'Underpost', ssr: 'Underpost' },
|
|
93
|
+
{ path: '/content', client: 'Underpost', ssr: 'Underpost' },
|
|
94
|
+
{ path: '/cloud', client: 'Underpost', ssr: 'Underpost' },
|
|
97
95
|
{ path: '/polyhedron', client: 'Underpost', ssr: 'Underpost' },
|
|
98
96
|
],
|
|
99
97
|
dists: [
|
|
@@ -195,6 +193,7 @@ const DefaultConf = /**/ {
|
|
|
195
193
|
'RichText',
|
|
196
194
|
'Panel',
|
|
197
195
|
'Content',
|
|
196
|
+
'Docs',
|
|
198
197
|
'WebComponent',
|
|
199
198
|
],
|
|
200
199
|
'cyberia-portal': [
|
|
@@ -226,6 +225,7 @@ const DefaultConf = /**/ {
|
|
|
226
225
|
{ path: '/object-layer-engine-management', client: 'CyberiaPortal', ssr: 'CyberiaPortal' },
|
|
227
226
|
{ path: '/object-layer-engine-viewer', client: 'CyberiaPortal', ssr: 'CyberiaPortal' },
|
|
228
227
|
{ path: '/cyberia-map-engine', client: 'CyberiaPortal', ssr: 'CyberiaPortal' },
|
|
228
|
+
{ path: '/docs', client: 'CyberiaPortal', ssr: 'CyberiaPortal' },
|
|
229
229
|
],
|
|
230
230
|
dists: [
|
|
231
231
|
{
|
|
@@ -280,7 +280,15 @@ const DefaultConf = /**/ {
|
|
|
280
280
|
],
|
|
281
281
|
},
|
|
282
282
|
cryptokoyn: {
|
|
283
|
-
metadata: {
|
|
283
|
+
metadata: {
|
|
284
|
+
title: 'Cryptokoyn',
|
|
285
|
+
description:
|
|
286
|
+
'Financial portal and token hub for CryptoKoyn (CKY) — the fungible ERC-1155 currency of the Cyberia Online ecosystem. Staking, governance, analytics, and wallet management.',
|
|
287
|
+
keywords: ['cryptokoyn', 'CKY', 'token', 'staking', 'governance', 'ERC-1155', 'wallet', 'blockchain'],
|
|
288
|
+
author: 'https://github.com/underpostnet',
|
|
289
|
+
thumbnail: 'assets/banner/koyn-social.png',
|
|
290
|
+
themeColor: '#E1DB07',
|
|
291
|
+
},
|
|
284
292
|
publicCopyNonExistingFiles: 'cyberia',
|
|
285
293
|
components: {
|
|
286
294
|
core: [
|
|
@@ -387,7 +395,15 @@ const DefaultConf = /**/ {
|
|
|
387
395
|
services: ['core', 'user', 'file', 'crypto'],
|
|
388
396
|
},
|
|
389
397
|
itemledger: {
|
|
390
|
-
metadata: {
|
|
398
|
+
metadata: {
|
|
399
|
+
title: 'Item Ledger',
|
|
400
|
+
description:
|
|
401
|
+
'Canonical registry, metadata resolver, and IPFS indexer for Object Layer items — semi-fungible and non-fungible ERC-1155 tokens in the Cyberia Online ecosystem. Item search, provenance, and marketplace.',
|
|
402
|
+
keywords: ['itemledger', 'object layer', 'NFT', 'ERC-1155', 'metadata', 'IPFS', 'registry', 'marketplace'],
|
|
403
|
+
author: 'https://github.com/underpostnet',
|
|
404
|
+
thumbnail: 'apple-touch-startup-image-1136x640.png',
|
|
405
|
+
themeColor: '#0551C4',
|
|
406
|
+
},
|
|
391
407
|
publicCopyNonExistingFiles: 'cyberia',
|
|
392
408
|
components: {
|
|
393
409
|
core: [
|
|
@@ -508,7 +524,7 @@ const DefaultConf = /**/ {
|
|
|
508
524
|
},
|
|
509
525
|
CyberiaPortal: {
|
|
510
526
|
head: ['Seo', 'Pwa', 'Microdata', 'CyberiaPortalScripts', 'Css'],
|
|
511
|
-
body: ['CacheControl', 'CyberiaDefaultSplashScreen'],
|
|
527
|
+
body: ['CacheControl', 'CyberiaDefaultSplashScreen', 'SwaggerDarkMode'],
|
|
512
528
|
mailer: { userVerifyEmail: 'DefaultVerifyEmail', userRecoverEmail: 'DefaultRecoverEmail' },
|
|
513
529
|
offline: [
|
|
514
530
|
{ path: '/offline', title: 'No Network Connection', client: 'NoNetworkConnection', head: [], body: [] },
|
|
@@ -517,7 +533,7 @@ const DefaultConf = /**/ {
|
|
|
517
533
|
pages: [{ path: '/test', title: 'Test', client: 'Test', head: [], body: [] }],
|
|
518
534
|
},
|
|
519
535
|
Cryptokoyn: {
|
|
520
|
-
head: ['CryptokoynScripts', 'Css'],
|
|
536
|
+
head: ['Seo', 'Pwa', 'Microdata', 'CryptokoynScripts', 'Css'],
|
|
521
537
|
body: ['CacheControl', 'DefaultSplashScreen'],
|
|
522
538
|
mailer: { userVerifyEmail: 'DefaultVerifyEmail', userRecoverEmail: 'DefaultRecoverEmail' },
|
|
523
539
|
offline: [
|
|
@@ -527,7 +543,7 @@ const DefaultConf = /**/ {
|
|
|
527
543
|
pages: [{ path: '/test', title: 'Test', client: 'Test', head: [], body: [] }],
|
|
528
544
|
},
|
|
529
545
|
Itemledger: {
|
|
530
|
-
head: ['ItemledgerScripts', 'Css'],
|
|
546
|
+
head: ['Seo', 'PwaItemledger', 'Microdata', 'ItemledgerScripts', 'Css'],
|
|
531
547
|
body: ['CacheControl', 'DefaultSplashScreen'],
|
|
532
548
|
mailer: { userVerifyEmail: 'DefaultVerifyEmail', userRecoverEmail: 'DefaultRecoverEmail' },
|
|
533
549
|
offline: [
|
|
@@ -546,21 +562,18 @@ const DefaultConf = /**/ {
|
|
|
546
562
|
apiBaseProxyPath: null,
|
|
547
563
|
apiBaseHost: null,
|
|
548
564
|
origins: [],
|
|
549
|
-
minifyBuild: false,
|
|
550
|
-
liteBuild: true,
|
|
551
|
-
docsBuild: false,
|
|
552
565
|
ws: 'core',
|
|
553
566
|
peer: true,
|
|
554
567
|
proxy: [80, 443],
|
|
555
|
-
db: { provider: 'mongoose', host: '
|
|
556
|
-
valkey: { port:
|
|
568
|
+
db: { provider: 'mongoose', host: 'env:DB_HOST', name: 'env:DB_NAME_NEXODEV' },
|
|
569
|
+
valkey: { port: 'env:VALKEY_PORT', host: 'env:VALKEY_HOST' },
|
|
557
570
|
mailer: {
|
|
558
|
-
sender: { email: '
|
|
571
|
+
sender: { email: 'env:MAILER_SENDER_EMAIL', name: 'env:MAILER_SENDER_NAME' },
|
|
559
572
|
transport: {
|
|
560
|
-
host: '
|
|
561
|
-
port:
|
|
573
|
+
host: 'env:SMTP_HOST',
|
|
574
|
+
port: 'env:SMTP_PORT',
|
|
562
575
|
secure: true,
|
|
563
|
-
auth: { user: '
|
|
576
|
+
auth: { user: 'env:SMTP_AUTH_USER', pass: 'env:SMTP_AUTH_PASS' },
|
|
564
577
|
},
|
|
565
578
|
},
|
|
566
579
|
},
|
|
@@ -571,25 +584,55 @@ const DefaultConf = /**/ {
|
|
|
571
584
|
runtime: 'nodejs',
|
|
572
585
|
apis: [],
|
|
573
586
|
origins: [],
|
|
574
|
-
minifyBuild: false,
|
|
575
|
-
liteBuild: true,
|
|
576
|
-
docsBuild: false,
|
|
577
587
|
proxy: [80, 443],
|
|
578
588
|
redirect: 'https://underpost.net',
|
|
579
|
-
|
|
589
|
+
},
|
|
590
|
+
},
|
|
591
|
+
'www.cyberiaonline.com': {
|
|
592
|
+
'/': {
|
|
593
|
+
client: 'cyberia-portal',
|
|
594
|
+
runtime: 'nodejs',
|
|
595
|
+
apis: [
|
|
596
|
+
'core',
|
|
597
|
+
'file',
|
|
598
|
+
'user',
|
|
599
|
+
'crypto',
|
|
600
|
+
'document',
|
|
601
|
+
'instance',
|
|
602
|
+
'object-layer',
|
|
603
|
+
'object-layer-render-frames',
|
|
604
|
+
'atlas-sprite-sheet',
|
|
605
|
+
'ipfs',
|
|
606
|
+
],
|
|
607
|
+
ws: 'core',
|
|
608
|
+
peer: true,
|
|
609
|
+
docs: {
|
|
610
|
+
coveragePath: './hardhat',
|
|
611
|
+
jsJsonPath: './jsdoc.dd-cyberia.json',
|
|
612
|
+
references: ['./hardhat/README.md', './hardhat/WHITE-PAPER.md'],
|
|
613
|
+
},
|
|
614
|
+
origins: [
|
|
615
|
+
'https://www.cyberiaonline.com',
|
|
616
|
+
'https://server.cyberiaonline.com',
|
|
617
|
+
'https://client.cyberiaonline.com',
|
|
618
|
+
],
|
|
619
|
+
proxy: [80, 443],
|
|
620
|
+
db: { provider: 'mongoose', host: 'env:DB_HOST', name: 'env:DB_NAME_CYBERIA' },
|
|
621
|
+
valkey: { port: 'env:VALKEY_PORT', host: 'env:VALKEY_HOST' },
|
|
580
622
|
mailer: {
|
|
581
|
-
sender: { email: '
|
|
623
|
+
sender: { email: 'env:MAILER_SENDER_EMAIL_CYBERIA', name: 'env:MAILER_SENDER_NAME_CYBERIA' },
|
|
582
624
|
transport: {
|
|
583
|
-
host: '
|
|
584
|
-
port:
|
|
625
|
+
host: 'env:SMTP_HOST_CYBERIA',
|
|
626
|
+
port: 'env:SMTP_PORT_CYBERIA',
|
|
585
627
|
secure: true,
|
|
586
|
-
auth: { user: '
|
|
628
|
+
auth: { user: 'env:SMTP_AUTH_USER_CYBERIA', pass: 'env:SMTP_AUTH_PASS_CYBERIA' },
|
|
587
629
|
},
|
|
588
630
|
},
|
|
631
|
+
replicas: ['/r1', '/r2'],
|
|
589
632
|
},
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
633
|
+
'/single-replica': {
|
|
634
|
+
singleReplica: true,
|
|
635
|
+
replicas: ['/r3', '/r4'],
|
|
593
636
|
client: 'cyberia-portal',
|
|
594
637
|
runtime: 'nodejs',
|
|
595
638
|
apis: [
|
|
@@ -606,24 +649,26 @@ const DefaultConf = /**/ {
|
|
|
606
649
|
],
|
|
607
650
|
ws: 'core',
|
|
608
651
|
peer: true,
|
|
652
|
+
docs: {
|
|
653
|
+
coveragePath: './hardhat',
|
|
654
|
+
jsJsonPath: './jsdoc.dd-cyberia.json',
|
|
655
|
+
references: ['./hardhat/README.md', './hardhat/WHITE-PAPER.md'],
|
|
656
|
+
},
|
|
609
657
|
origins: [
|
|
610
658
|
'https://www.cyberiaonline.com',
|
|
611
659
|
'https://server.cyberiaonline.com',
|
|
612
660
|
'https://client.cyberiaonline.com',
|
|
613
661
|
],
|
|
614
|
-
minifyBuild: false,
|
|
615
|
-
liteBuild: true,
|
|
616
|
-
docsBuild: false,
|
|
617
662
|
proxy: [80, 443],
|
|
618
|
-
db: { provider: 'mongoose', host: '
|
|
619
|
-
valkey: { port:
|
|
663
|
+
db: { provider: 'mongoose', host: 'env:DB_HOST', name: 'env:DB_NAME_CYBERIA' },
|
|
664
|
+
valkey: { port: 'env:VALKEY_PORT', host: 'env:VALKEY_HOST' },
|
|
620
665
|
mailer: {
|
|
621
|
-
sender: { email: '
|
|
666
|
+
sender: { email: 'env:MAILER_SENDER_EMAIL_CYBERIA', name: 'env:MAILER_SENDER_NAME_CYBERIA' },
|
|
622
667
|
transport: {
|
|
623
|
-
host: '
|
|
624
|
-
port:
|
|
668
|
+
host: 'env:SMTP_HOST_CYBERIA',
|
|
669
|
+
port: 'env:SMTP_PORT_CYBERIA',
|
|
625
670
|
secure: true,
|
|
626
|
-
auth: { user: '
|
|
671
|
+
auth: { user: 'env:SMTP_AUTH_USER_CYBERIA', pass: 'env:SMTP_AUTH_PASS_CYBERIA' },
|
|
627
672
|
},
|
|
628
673
|
},
|
|
629
674
|
},
|
|
@@ -635,20 +680,7 @@ const DefaultConf = /**/ {
|
|
|
635
680
|
runtime: 'nodejs',
|
|
636
681
|
origins: [],
|
|
637
682
|
redirect: 'https://www.cyberiaonline.com',
|
|
638
|
-
minifyBuild: false,
|
|
639
|
-
liteBuild: true,
|
|
640
|
-
docsBuild: false,
|
|
641
683
|
proxy: [80, 443],
|
|
642
|
-
db: { provider: 'mongoose', host: 'mongodb://127.0.0.1:27017', name: 'default' },
|
|
643
|
-
mailer: {
|
|
644
|
-
sender: { email: 'noreply@default.net', name: 'Default' },
|
|
645
|
-
transport: {
|
|
646
|
-
host: 'smtp.default.com',
|
|
647
|
-
port: 465,
|
|
648
|
-
secure: true,
|
|
649
|
-
auth: { user: 'noreply@default.net', pass: '' },
|
|
650
|
-
},
|
|
651
|
-
},
|
|
652
684
|
},
|
|
653
685
|
},
|
|
654
686
|
'cryptokoyn.net': {
|
|
@@ -668,21 +700,18 @@ const DefaultConf = /**/ {
|
|
|
668
700
|
'ipfs',
|
|
669
701
|
],
|
|
670
702
|
origins: [],
|
|
671
|
-
minifyBuild: false,
|
|
672
|
-
liteBuild: true,
|
|
673
|
-
docsBuild: false,
|
|
674
703
|
ws: 'core',
|
|
675
704
|
peer: true,
|
|
676
705
|
proxy: [80, 443],
|
|
677
|
-
db: { provider: 'mongoose', host: '
|
|
678
|
-
valkey: { port:
|
|
706
|
+
db: { provider: 'mongoose', host: 'env:DB_HOST', name: 'env:DB_NAME_CRYPTOKOYN' },
|
|
707
|
+
valkey: { port: 'env:VALKEY_PORT', host: 'env:VALKEY_HOST' },
|
|
679
708
|
mailer: {
|
|
680
|
-
sender: { email: '
|
|
709
|
+
sender: { email: 'env:MAILER_SENDER_EMAIL', name: 'env:MAILER_SENDER_NAME' },
|
|
681
710
|
transport: {
|
|
682
|
-
host: '
|
|
683
|
-
port:
|
|
711
|
+
host: 'env:SMTP_HOST',
|
|
712
|
+
port: 'env:SMTP_PORT',
|
|
684
713
|
secure: true,
|
|
685
|
-
auth: { user: '
|
|
714
|
+
auth: { user: 'env:SMTP_AUTH_USER', pass: 'env:SMTP_AUTH_PASS' },
|
|
686
715
|
},
|
|
687
716
|
},
|
|
688
717
|
},
|
|
@@ -693,21 +722,8 @@ const DefaultConf = /**/ {
|
|
|
693
722
|
runtime: 'nodejs',
|
|
694
723
|
apis: [],
|
|
695
724
|
origins: [],
|
|
696
|
-
minifyBuild: false,
|
|
697
|
-
liteBuild: true,
|
|
698
|
-
docsBuild: false,
|
|
699
725
|
proxy: [80, 443],
|
|
700
726
|
redirect: 'https://cryptokoyn.net',
|
|
701
|
-
db: { provider: 'mongoose', host: 'mongodb://127.0.0.1:27017', name: 'default' },
|
|
702
|
-
mailer: {
|
|
703
|
-
sender: { email: 'noreply@default.net', name: 'Default' },
|
|
704
|
-
transport: {
|
|
705
|
-
host: 'smtp.default.com',
|
|
706
|
-
port: 465,
|
|
707
|
-
secure: true,
|
|
708
|
-
auth: { user: 'noreply@default.net', pass: '' },
|
|
709
|
-
},
|
|
710
|
-
},
|
|
711
727
|
},
|
|
712
728
|
},
|
|
713
729
|
'itemledger.com': {
|
|
@@ -727,22 +743,18 @@ const DefaultConf = /**/ {
|
|
|
727
743
|
'ipfs',
|
|
728
744
|
],
|
|
729
745
|
origins: [],
|
|
730
|
-
minifyBuild: false,
|
|
731
|
-
liteBuild: true,
|
|
732
|
-
docsBuild: false,
|
|
733
|
-
iconsBuild: false,
|
|
734
746
|
ws: 'core',
|
|
735
747
|
peer: true,
|
|
736
748
|
proxy: [80, 443],
|
|
737
|
-
db: { provider: 'mongoose', host: '
|
|
738
|
-
valkey: { port:
|
|
749
|
+
db: { provider: 'mongoose', host: 'env:DB_HOST', name: 'env:DB_NAME_ITEMLEDGER' },
|
|
750
|
+
valkey: { port: 'env:VALKEY_PORT', host: 'env:VALKEY_HOST' },
|
|
739
751
|
mailer: {
|
|
740
|
-
sender: { email: '
|
|
752
|
+
sender: { email: 'env:MAILER_SENDER_EMAIL', name: 'env:MAILER_SENDER_NAME' },
|
|
741
753
|
transport: {
|
|
742
|
-
host: '
|
|
743
|
-
port:
|
|
754
|
+
host: 'env:SMTP_HOST',
|
|
755
|
+
port: 'env:SMTP_PORT',
|
|
744
756
|
secure: true,
|
|
745
|
-
auth: { user: '
|
|
757
|
+
auth: { user: 'env:SMTP_AUTH_USER', pass: 'env:SMTP_AUTH_PASS' },
|
|
746
758
|
},
|
|
747
759
|
},
|
|
748
760
|
},
|
|
@@ -753,26 +765,22 @@ const DefaultConf = /**/ {
|
|
|
753
765
|
runtime: 'nodejs',
|
|
754
766
|
apis: [],
|
|
755
767
|
origins: [],
|
|
756
|
-
minifyBuild: false,
|
|
757
|
-
liteBuild: true,
|
|
758
|
-
docsBuild: false,
|
|
759
768
|
proxy: [80, 443],
|
|
760
769
|
redirect: 'https://itemledger.com',
|
|
761
|
-
db: { provider: 'mongoose', host: 'mongodb://127.0.0.1:27017', name: 'default' },
|
|
762
|
-
mailer: {
|
|
763
|
-
sender: { email: 'noreply@default.net', name: 'Default' },
|
|
764
|
-
transport: {
|
|
765
|
-
host: 'smtp.default.com',
|
|
766
|
-
port: 465,
|
|
767
|
-
secure: true,
|
|
768
|
-
auth: { user: 'noreply@default.net', pass: '' },
|
|
769
|
-
},
|
|
770
|
-
},
|
|
771
770
|
},
|
|
772
771
|
},
|
|
773
772
|
},
|
|
774
773
|
cron: {
|
|
775
|
-
records: {
|
|
774
|
+
records: {
|
|
775
|
+
A: [
|
|
776
|
+
{
|
|
777
|
+
host: 'env:DDNS_HOST:example.com',
|
|
778
|
+
dns: 'env:DDNS_PROVIDER:dondominio',
|
|
779
|
+
api_key: 'env:DDNS_API_KEY:',
|
|
780
|
+
user: 'env:DDNS_USER:',
|
|
781
|
+
},
|
|
782
|
+
],
|
|
783
|
+
},
|
|
776
784
|
jobs: {
|
|
777
785
|
dns: { expression: '* * * * *', enabled: true, instances: 1 },
|
|
778
786
|
backups: { expression: '0 1 * * *', enabled: true, instances: 1 },
|
package/deployment.yaml
CHANGED
|
@@ -18,13 +18,13 @@ spec:
|
|
|
18
18
|
spec:
|
|
19
19
|
containers:
|
|
20
20
|
- name: dd-cyberia-development-blue
|
|
21
|
-
image: localhost/rockylinux9-underpost:v3.
|
|
21
|
+
image: localhost/rockylinux9-underpost:v3.1.3
|
|
22
22
|
|
|
23
23
|
command:
|
|
24
24
|
- /bin/sh
|
|
25
25
|
- -c
|
|
26
26
|
- >
|
|
27
|
-
npm install -g npm@11.2.0 && npm install -g underpost && underpost secret underpost --create-from-file /etc/config/.env.development && underpost start --build --run
|
|
27
|
+
npm install -g npm@11.2.0 && npm install -g underpost && underpost secret underpost --create-from-file /etc/config/.env.development && underpost start --build --run dd-cyberia development
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
volumeMounts:
|
|
@@ -170,6 +170,78 @@ spec:
|
|
|
170
170
|
protocol: UDP
|
|
171
171
|
port: 4016
|
|
172
172
|
targetPort: 4016
|
|
173
|
+
|
|
174
|
+
- name: 'tcp-4017'
|
|
175
|
+
protocol: TCP
|
|
176
|
+
port: 4017
|
|
177
|
+
targetPort: 4017
|
|
178
|
+
- name: 'udp-4017'
|
|
179
|
+
protocol: UDP
|
|
180
|
+
port: 4017
|
|
181
|
+
targetPort: 4017
|
|
182
|
+
|
|
183
|
+
- name: 'tcp-4018'
|
|
184
|
+
protocol: TCP
|
|
185
|
+
port: 4018
|
|
186
|
+
targetPort: 4018
|
|
187
|
+
- name: 'udp-4018'
|
|
188
|
+
protocol: UDP
|
|
189
|
+
port: 4018
|
|
190
|
+
targetPort: 4018
|
|
191
|
+
|
|
192
|
+
- name: 'tcp-4019'
|
|
193
|
+
protocol: TCP
|
|
194
|
+
port: 4019
|
|
195
|
+
targetPort: 4019
|
|
196
|
+
- name: 'udp-4019'
|
|
197
|
+
protocol: UDP
|
|
198
|
+
port: 4019
|
|
199
|
+
targetPort: 4019
|
|
200
|
+
|
|
201
|
+
- name: 'tcp-4020'
|
|
202
|
+
protocol: TCP
|
|
203
|
+
port: 4020
|
|
204
|
+
targetPort: 4020
|
|
205
|
+
- name: 'udp-4020'
|
|
206
|
+
protocol: UDP
|
|
207
|
+
port: 4020
|
|
208
|
+
targetPort: 4020
|
|
209
|
+
|
|
210
|
+
- name: 'tcp-4021'
|
|
211
|
+
protocol: TCP
|
|
212
|
+
port: 4021
|
|
213
|
+
targetPort: 4021
|
|
214
|
+
- name: 'udp-4021'
|
|
215
|
+
protocol: UDP
|
|
216
|
+
port: 4021
|
|
217
|
+
targetPort: 4021
|
|
218
|
+
|
|
219
|
+
- name: 'tcp-4022'
|
|
220
|
+
protocol: TCP
|
|
221
|
+
port: 4022
|
|
222
|
+
targetPort: 4022
|
|
223
|
+
- name: 'udp-4022'
|
|
224
|
+
protocol: UDP
|
|
225
|
+
port: 4022
|
|
226
|
+
targetPort: 4022
|
|
227
|
+
|
|
228
|
+
- name: 'tcp-4023'
|
|
229
|
+
protocol: TCP
|
|
230
|
+
port: 4023
|
|
231
|
+
targetPort: 4023
|
|
232
|
+
- name: 'udp-4023'
|
|
233
|
+
protocol: UDP
|
|
234
|
+
port: 4023
|
|
235
|
+
targetPort: 4023
|
|
236
|
+
|
|
237
|
+
- name: 'tcp-4024'
|
|
238
|
+
protocol: TCP
|
|
239
|
+
port: 4024
|
|
240
|
+
targetPort: 4024
|
|
241
|
+
- name: 'udp-4024'
|
|
242
|
+
protocol: UDP
|
|
243
|
+
port: 4024
|
|
244
|
+
targetPort: 4024
|
|
173
245
|
type: LoadBalancer
|
|
174
246
|
---
|
|
175
247
|
apiVersion: apps/v1
|
|
@@ -191,13 +263,13 @@ spec:
|
|
|
191
263
|
spec:
|
|
192
264
|
containers:
|
|
193
265
|
- name: dd-cyberia-development-green
|
|
194
|
-
image: localhost/rockylinux9-underpost:v3.
|
|
266
|
+
image: localhost/rockylinux9-underpost:v3.1.3
|
|
195
267
|
|
|
196
268
|
command:
|
|
197
269
|
- /bin/sh
|
|
198
270
|
- -c
|
|
199
271
|
- >
|
|
200
|
-
npm install -g npm@11.2.0 && npm install -g underpost && underpost secret underpost --create-from-file /etc/config/.env.development && underpost start --build --run
|
|
272
|
+
npm install -g npm@11.2.0 && npm install -g underpost && underpost secret underpost --create-from-file /etc/config/.env.development && underpost start --build --run dd-cyberia development
|
|
201
273
|
|
|
202
274
|
|
|
203
275
|
volumeMounts:
|
|
@@ -343,4 +415,76 @@ spec:
|
|
|
343
415
|
protocol: UDP
|
|
344
416
|
port: 4016
|
|
345
417
|
targetPort: 4016
|
|
418
|
+
|
|
419
|
+
- name: 'tcp-4017'
|
|
420
|
+
protocol: TCP
|
|
421
|
+
port: 4017
|
|
422
|
+
targetPort: 4017
|
|
423
|
+
- name: 'udp-4017'
|
|
424
|
+
protocol: UDP
|
|
425
|
+
port: 4017
|
|
426
|
+
targetPort: 4017
|
|
427
|
+
|
|
428
|
+
- name: 'tcp-4018'
|
|
429
|
+
protocol: TCP
|
|
430
|
+
port: 4018
|
|
431
|
+
targetPort: 4018
|
|
432
|
+
- name: 'udp-4018'
|
|
433
|
+
protocol: UDP
|
|
434
|
+
port: 4018
|
|
435
|
+
targetPort: 4018
|
|
436
|
+
|
|
437
|
+
- name: 'tcp-4019'
|
|
438
|
+
protocol: TCP
|
|
439
|
+
port: 4019
|
|
440
|
+
targetPort: 4019
|
|
441
|
+
- name: 'udp-4019'
|
|
442
|
+
protocol: UDP
|
|
443
|
+
port: 4019
|
|
444
|
+
targetPort: 4019
|
|
445
|
+
|
|
446
|
+
- name: 'tcp-4020'
|
|
447
|
+
protocol: TCP
|
|
448
|
+
port: 4020
|
|
449
|
+
targetPort: 4020
|
|
450
|
+
- name: 'udp-4020'
|
|
451
|
+
protocol: UDP
|
|
452
|
+
port: 4020
|
|
453
|
+
targetPort: 4020
|
|
454
|
+
|
|
455
|
+
- name: 'tcp-4021'
|
|
456
|
+
protocol: TCP
|
|
457
|
+
port: 4021
|
|
458
|
+
targetPort: 4021
|
|
459
|
+
- name: 'udp-4021'
|
|
460
|
+
protocol: UDP
|
|
461
|
+
port: 4021
|
|
462
|
+
targetPort: 4021
|
|
463
|
+
|
|
464
|
+
- name: 'tcp-4022'
|
|
465
|
+
protocol: TCP
|
|
466
|
+
port: 4022
|
|
467
|
+
targetPort: 4022
|
|
468
|
+
- name: 'udp-4022'
|
|
469
|
+
protocol: UDP
|
|
470
|
+
port: 4022
|
|
471
|
+
targetPort: 4022
|
|
472
|
+
|
|
473
|
+
- name: 'tcp-4023'
|
|
474
|
+
protocol: TCP
|
|
475
|
+
port: 4023
|
|
476
|
+
targetPort: 4023
|
|
477
|
+
- name: 'udp-4023'
|
|
478
|
+
protocol: UDP
|
|
479
|
+
port: 4023
|
|
480
|
+
targetPort: 4023
|
|
481
|
+
|
|
482
|
+
- name: 'tcp-4024'
|
|
483
|
+
protocol: TCP
|
|
484
|
+
port: 4024
|
|
485
|
+
targetPort: 4024
|
|
486
|
+
- name: 'udp-4024'
|
|
487
|
+
protocol: UDP
|
|
488
|
+
port: 4024
|
|
489
|
+
targetPort: 4024
|
|
346
490
|
type: LoadBalancer
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# ─────────────────────────────────────────────────────────────────────────────
|
|
2
|
+
# Cyberia Hardhat – Environment Variables (.env.example)
|
|
3
|
+
# ─────────────────────────────────────────────────────────────────────────────
|
|
4
|
+
# Copy this file to `.env` and fill in the values for your local environment.
|
|
5
|
+
# cp .env.example .env
|
|
6
|
+
#
|
|
7
|
+
# NEVER commit the real `.env` file. It is listed in `.gitignore`.
|
|
8
|
+
# For production / CI, use a secrets manager (GitHub Secrets, Vault, etc.).
|
|
9
|
+
# ─────────────────────────────────────────────────────────────────────────────
|
|
10
|
+
|
|
11
|
+
# ── Besu IBFT2 Network ──────────────────────────────────────────────────────
|
|
12
|
+
BESU_IBFT2_RPC_URL=http://127.0.0.1:8545
|
|
13
|
+
BESU_IBFT2_CHAIN_ID=777771
|
|
14
|
+
|
|
15
|
+
# ── Besu QBFT Network ──────────────────────────────────────────────────────
|
|
16
|
+
BESU_QBFT_RPC_URL=http://127.0.0.1:8545
|
|
17
|
+
BESU_QBFT_CHAIN_ID=777771
|
|
18
|
+
|
|
19
|
+
# ── Besu Kubernetes (NodePort / LoadBalancer) ───────────────────────────────
|
|
20
|
+
BESU_K8S_RPC_URL=http://127.0.0.1:30545
|
|
21
|
+
BESU_K8S_CHAIN_ID=777771
|
|
22
|
+
|
|
23
|
+
# ── Gas Reporter ────────────────────────────────────────────────────────────
|
|
24
|
+
# Set to "true" to enable gas usage reports during test runs.
|
|
25
|
+
REPORT_GAS=false
|
|
26
|
+
# Optional: write gas report to a file instead of stdout.
|
|
27
|
+
# GAS_REPORT_FILE=gas-report.txt
|
|
28
|
+
|
|
29
|
+
# ── Contract Verification (Etherscan-compatible explorers) ──────────────────
|
|
30
|
+
# Only needed if you verify contracts on a public block explorer.
|
|
31
|
+
# ETHERSCAN_API_KEY=your-api-key-here
|