| import { setup, startTunnel } from 'cloudflared-tunnel'; | |
| async function main() { | |
| await setup(); | |
| await startTunnel({ | |
| host: 'http://localhost', | |
| port: 11434 // Direct tunnel to Ollama's native port | |
| }); | |
| } | |
| main().catch(console.error); |
| import { setup, startTunnel } from 'cloudflared-tunnel'; | |
| async function main() { | |
| await setup(); | |
| await startTunnel({ | |
| host: 'http://localhost', | |
| port: 11434 // Direct tunnel to Ollama's native port | |
| }); | |
| } | |
| main().catch(console.error); |