querysub 0.316.0 → 0.318.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "querysub",
3
- "version": "0.316.0",
3
+ "version": "0.318.0",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "note1": "note on node-forge fork, see https://github.com/digitalbazaar/forge/issues/744 for details",
@@ -65,9 +65,6 @@ export async function getSNICerts(config: {
65
65
  });
66
66
  },
67
67
  };
68
-
69
- await publishEdgeDomain();
70
-
71
68
  return certs;
72
69
  }
73
70
 
@@ -137,6 +134,8 @@ export async function publishMachineARecords() {
137
134
  let ipDomain = await getIPDomain();
138
135
  await setRecord("A", ipDomain, ip);
139
136
 
137
+ await publishEdgeDomain();
138
+
140
139
  return {
141
140
  ip,
142
141
  ipDomain,
@@ -230,7 +229,9 @@ async function publishEdgeDomain() {
230
229
  console.log(magenta(`Switching from local development to production development (removing A record for 127.0.0.1, and using a real ip)`));
231
230
  promises.push(deleteRecord("A", edgeDomain, "127.0.0.1"));
232
231
  }
233
- promises.push(addRecord("A", edgeDomain, callerIP, "proxied"));
232
+ if (isBootstrapOnly()) {
233
+ promises.push(addRecord("A", edgeDomain, callerIP, "proxied"));
234
+ }
234
235
  }
235
236
  promises.push(addRecord("A", "127-0-0-1." + edgeDomain, "127.0.0.1"));
236
237
  // Add records in parallel, so we can wait for DNS propagation in parallel
@@ -713,6 +713,8 @@ export class Querysub {
713
713
 
714
714
  sourceCheck?: MachineSourceCheck<any>;
715
715
  }) {
716
+ console.log(`Hosting server with config: ${JSON.stringify(config)}`);
717
+
716
718
  if (isClient()) {
717
719
  throw new Error(`--client processes cannot host a service. Either stop passing --client and keep the process on the network and trusted, or stop calling hostServer and call Querysub.configRootDiscoveryLocation instead.`);
718
720
  }
@@ -5,15 +5,14 @@ Very small amount of data
5
5
 
6
6
 
7
7
 
8
- 4) Setup new hetnzer server
9
-
10
- yarn setup-machine 176.9.2.136
11
-
12
8
  5) Update all services, and move them to that machine
13
9
  5) Verify the hezner server can run the site well
14
10
  6) Take down our digital ocean server
15
11
  7) Destroy our digital ocean server
16
12
 
13
+ 10) "Started Listening" isn't being logged?
14
+ - https://127-0-0-1.querysubtest.com:7007/?enableLogs&page=login&showingmanagement&endTime=1757835685102.667&managementpage=LogViewer2&machineview=service-detail&startTime=1757745685102.667&serviceId=service-1756340309836&filter=__machineId%20%3D%20a794fbcf7b104c68%20%26%20Edge
15
+ - Or... maybe logs are lost SOMETIMES, and ALWAYS when we kill the server? Although... that would mean we have multiple issues. Ugh...
17
16
 
18
17
  6) Update URLParam to allow linking it to other parameters, resetting when they change.
19
18
  - With a function, and have standard one beside URLParam (that uses page and tab)