wilfredwake 1.0.0 → 1.0.2
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.example +4 -1
- package/README.md +1 -0
- package/package.json +1 -1
- package/src/cli/config.js +4 -4
- package/src/config/services.yaml +9 -1
package/.env.example
CHANGED
|
@@ -10,7 +10,10 @@
|
|
|
10
10
|
# Port to run orchestrator on
|
|
11
11
|
PORT=3000
|
|
12
12
|
|
|
13
|
-
#
|
|
13
|
+
# Orchestrator public URL when deployed (used by CLI defaults)
|
|
14
|
+
ORCHESTRATOR_URL=https://wilfredwake.onrender.com
|
|
15
|
+
|
|
16
|
+
# Path to local service registry file (used by orchestrator server)
|
|
14
17
|
REGISTRY_FILE=./src/config/services.yaml
|
|
15
18
|
|
|
16
19
|
# Node environment
|
package/README.md
CHANGED
package/package.json
CHANGED
package/src/cli/config.js
CHANGED
|
@@ -27,8 +27,8 @@ export class ConfigManager {
|
|
|
27
27
|
// DEFAULT CONFIGURATION
|
|
28
28
|
// ═══════════════════════════════════════════════════════════════
|
|
29
29
|
this.defaultConfig = {
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
version: '1.0.0',
|
|
31
|
+
orchestratorUrl: 'https://wilfredwake.onrender.com',
|
|
32
32
|
token: null,
|
|
33
33
|
environment: 'dev',
|
|
34
34
|
userId: this._generateUserId(),
|
|
@@ -47,11 +47,11 @@ export class ConfigManager {
|
|
|
47
47
|
},
|
|
48
48
|
staging: {
|
|
49
49
|
name: 'Staging',
|
|
50
|
-
orchestratorUrl: '
|
|
50
|
+
orchestratorUrl: 'https://wilfredwake.onrender.com',
|
|
51
51
|
},
|
|
52
52
|
prod: {
|
|
53
53
|
name: 'Production',
|
|
54
|
-
orchestratorUrl: '
|
|
54
|
+
orchestratorUrl: 'https://wilfredwake.onrender.com',
|
|
55
55
|
},
|
|
56
56
|
},
|
|
57
57
|
lastSyncTime: null,
|
package/src/config/services.yaml
CHANGED
|
@@ -10,9 +10,11 @@
|
|
|
10
10
|
env: dev
|
|
11
11
|
version: "1.0"
|
|
12
12
|
|
|
13
|
-
# SERVICES DEFINITION (DEV
|
|
13
|
+
# SERVICES DEFINITION (DEV, STAGING, PROD)
|
|
14
|
+
# Uses YAML anchors to avoid duplication
|
|
14
15
|
services:
|
|
15
16
|
dev:
|
|
17
|
+
&dev_services
|
|
16
18
|
# Core backend service
|
|
17
19
|
backend:
|
|
18
20
|
url: https://pension-backend-rs4h.onrender.com
|
|
@@ -47,3 +49,9 @@ services:
|
|
|
47
49
|
health: /health
|
|
48
50
|
dependsOn: []
|
|
49
51
|
description: "Notification Producer Service"
|
|
52
|
+
|
|
53
|
+
# Staging environment (same services as dev)
|
|
54
|
+
staging: *dev_services
|
|
55
|
+
|
|
56
|
+
# Production environment (same services as dev)
|
|
57
|
+
prod: *dev_services
|