Create ollama.js
Browse files
ollama.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import {setup, startTunnel} from 'cloudflared-tunnel'
|
| 2 |
+
|
| 3 |
+
await setup() // setup the project | you need to do this only once
|
| 4 |
+
|
| 5 |
+
await startTunnel({
|
| 6 |
+
host: 'http://localhost', // required
|
| 7 |
+
port: 3000, // required
|
| 8 |
+
}) // pass in the host and port of the server you want to tunnel
|