voicecc 1.1.1 → 1.1.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/bin/voicecc.js +18 -0
- package/dashboard/dist/assets/{index-CFgwcS6r.js → index-BSLjaEDe.js} +5 -5
- package/dashboard/dist/index.html +1 -1
- package/dashboard/routes/browser-call.ts +5 -9
- package/dashboard/routes/integrations.ts +7 -14
- package/dashboard/routes/tunnel.ts +6 -4
- package/dashboard/routes/twilio.ts +5 -8
- package/package.json +1 -1
- package/server/index.ts +27 -17
package/bin/voicecc.js
CHANGED
|
@@ -104,12 +104,30 @@ async function runSetupWizard() {
|
|
|
104
104
|
await ask(rl, "Have you saved the password? Press Enter to continue. ");
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
+
// Tunnel
|
|
108
|
+
console.log("");
|
|
109
|
+
console.log("Would you like to enable a public tunnel (via Cloudflare)?");
|
|
110
|
+
console.log("This is required if you want to access VoiceCC on a remote");
|
|
111
|
+
console.log("server, and/or want to make use of phone calling.");
|
|
112
|
+
console.log("");
|
|
113
|
+
console.log(" 1) Yes, enable tunnel (recommended)");
|
|
114
|
+
console.log(" 2) No, local only");
|
|
115
|
+
console.log("");
|
|
116
|
+
const tunnelChoice = await ask(rl, "Choose [1/2]: ");
|
|
117
|
+
const tunnelEnabled = tunnelChoice !== "2";
|
|
118
|
+
if (tunnelEnabled) {
|
|
119
|
+
console.log("Tunnel will start automatically on boot.");
|
|
120
|
+
} else {
|
|
121
|
+
console.log("Tunnel disabled. You can enable it later from Settings.");
|
|
122
|
+
}
|
|
123
|
+
|
|
107
124
|
rl.close();
|
|
108
125
|
|
|
109
126
|
// Build .env content
|
|
110
127
|
const lines = [];
|
|
111
128
|
if (apiKey) lines.push(`ELEVENLABS_API_KEY=${apiKey}`);
|
|
112
129
|
if (password) lines.push(`DASHBOARD_PASSWORD=${password}`);
|
|
130
|
+
lines.push(`TUNNEL_ENABLED=${tunnelEnabled}`);
|
|
113
131
|
await writeFile(ENV_PATH, lines.join("\n") + "\n", "utf-8");
|
|
114
132
|
|
|
115
133
|
console.log("All done! Starting VoiceCC...");
|