lobstakit-cloud 1.3.3 → 1.3.4

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 (2) hide show
  1. package/package.json +1 -1
  2. package/server.js +7 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lobstakit-cloud",
3
- "version": "1.3.3",
3
+ "version": "1.3.4",
4
4
  "description": "LobstaKit Cloud — Setup wizard and management for LobstaCloud gateways",
5
5
  "main": "server.js",
6
6
  "bin": {
package/server.js CHANGED
@@ -2107,14 +2107,19 @@ app.use((req, res, next) => {
2107
2107
 
2108
2108
  const server = app.listen(PORT, () => {
2109
2109
  const configured = config.isConfigured();
2110
+ const running = gateway.isGatewayRunning();
2110
2111
  console.log(`
2111
- 🦞 LobstaKit Cloud v1.0.0
2112
+ 🦞 LobstaKit Cloud v1.3.4
2112
2113
  ─────────────────────────
2113
2114
  Port: ${PORT}
2114
2115
  Status: ${configured ? '✅ Configured' : '⚙️ Setup required'}
2115
- Gateway: ${gateway.isGatewayRunning() ? '🟢 Running' : '🔴 Stopped'}
2116
+ Gateway: ${running ? '🟢 Running' : '🔴 Stopped'}
2116
2117
  Dashboard: http://localhost:${PORT}/manage
2117
2118
  `);
2119
+ // Sync gateway auth token on startup so health checks can authenticate
2120
+ if (running) {
2121
+ setTimeout(() => gateway.syncGatewayToken(), 2000);
2122
+ }
2118
2123
  });
2119
2124
 
2120
2125
  // WebSocket upgrade support for proxy