Update ollama.js
Browse files
ollama.js
CHANGED
@@ -1,8 +1,11 @@
|
|
1 |
-
import {setup, startTunnel} from 'cloudflared-tunnel'
|
2 |
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
5 |
-
|
6 |
-
host: 'http://localhost', // required
|
7 |
-
port: 3000, // required
|
8 |
-
}) // pass in the host and port of the server you want to tunnel
|
|
|
1 |
+
import { setup, startTunnel } from 'cloudflared-tunnel';
|
2 |
|
3 |
+
async function main() {
|
4 |
+
await setup();
|
5 |
+
await startTunnel({
|
6 |
+
host: 'http://localhost',
|
7 |
+
port: 11434 // Direct tunnel to Ollama's native port
|
8 |
+
});
|
9 |
+
}
|
10 |
|
11 |
+
main().catch(console.error);
|
|
|
|
|
|