mirror of
https://github.com/PR0M3TH3AN/TORCH.git
synced 2026-10-27 07:51:52 +00:00
Removes the hardcoded `auth: "admin:password"` from `torch-config.example.json` to prevent users from accidentally deploying with insecure defaults. Adds a regression test `test/verify-example-config-security.test.mjs` to ensure the example config does not contain default credentials in the future. Co-authored-by: PR0M3TH3AN <[email protected]>
70 lines
1.7 KiB
JSON
70 lines
1.7 KiB
JSON
{
|
|
"nostrLock": {
|
|
"namespace": "torch-example",
|
|
"relays": [
|
|
"wss://relay.damus.io",
|
|
"wss://nos.lol",
|
|
"wss://relay.primal.net"
|
|
],
|
|
"ttlSeconds": 7200,
|
|
"queryTimeoutMs": 30000,
|
|
"publishTimeoutMs": 15000,
|
|
"minSuccessfulRelayPublishes": 2,
|
|
"minActiveRelayPool": 2,
|
|
"relayFallbacks": [
|
|
"wss://relay.snort.social",
|
|
"wss://relay.nostr.band"
|
|
]
|
|
},
|
|
"dashboard": {
|
|
"defaultCadenceView": "daily",
|
|
"defaultStatusView": "active"
|
|
},
|
|
"scheduler": {
|
|
"firstPromptByCadence": {
|
|
"daily": "scheduler-update-agent",
|
|
"weekly": "bug-reproducer-agent"
|
|
},
|
|
"memoryPolicyByCadence": {
|
|
"daily": {
|
|
"mode": "required",
|
|
"retrieveCommand": "node torch/scripts/memory/retrieve.mjs",
|
|
"storeCommand": "node torch/scripts/memory/store.mjs",
|
|
"retrieveSuccessMarkers": [
|
|
"MEMORY_RETRIEVED"
|
|
],
|
|
"storeSuccessMarkers": [
|
|
"MEMORY_STORED"
|
|
],
|
|
"retrieveArtifacts": [
|
|
".scheduler-memory/latest/daily/retrieve.ok"
|
|
],
|
|
"storeArtifacts": [
|
|
".scheduler-memory/latest/daily/store.ok"
|
|
]
|
|
},
|
|
"weekly": {
|
|
"mode": "required",
|
|
"retrieveCommand": "node torch/scripts/memory/retrieve.mjs",
|
|
"storeCommand": "node torch/scripts/memory/store.mjs",
|
|
"retrieveSuccessMarkers": [
|
|
"MEMORY_RETRIEVED"
|
|
],
|
|
"storeSuccessMarkers": [
|
|
"MEMORY_STORED"
|
|
],
|
|
"retrieveArtifacts": [
|
|
".scheduler-memory/latest/weekly/retrieve.ok"
|
|
],
|
|
"storeArtifacts": [
|
|
".scheduler-memory/latest/weekly/store.ok"
|
|
]
|
|
}
|
|
},
|
|
"paused": {
|
|
"daily": [],
|
|
"weekly": []
|
|
}
|
|
}
|
|
}
|