1.3.81 • Published 6 months ago
@bss-sbc/tunnel v1.3.81
Shopify App Tunnel
A simple npm package to run Cloudflare tunnel for Shopify apps in Node.js.
Installation
Using npm:
$ npm install --save-dev @bss-sbc/tunnel
Using yarn:
$ yarn add -D @bss-sbc/tunnel
Usage
Using Cloudflare quick tunnel:
const { useCloudflareTunnel } = require("@bss-sbc/tunnel");
(async () => {
const tunnelUrl = await useCloudflareTunnel(8001);
console.log("Tunnel url: ", tunnelUrl)
}) ()
Using Cloudflare Zero Trust:
const { CloudflareTunnel } = require("@bss-sbc/tunnel");
const cfTunnel = new CloudflareTunnel({
certPath: 'home/bar/.cloudflared/cert.pem',
cfAccountTag: 'daca032c1f89e3d5gfdg34dfg',
cfSecretKey: "k5meSe4CiZhC5IyJjDKOfsdxcvzbMGsVl66FK6CryWgQ=",
tunnelName: "my-tunnel",
tunnelOptions: {
connectTimeout: "25s",
},
tunnels: [
{
hostname: "abc.example.com",
service: "http://localhost:3000"
},
{
hostname: "bcd.example.com",
service: "http://localhost:3001"
}
],
debug: true
})
cfTunnel.start();
References:
- Cloudflare Zero Trust
1.3.81
6 months ago
1.3.8
7 months ago
1.3.7
8 months ago
1.3.6
9 months ago
1.3.5
9 months ago
1.3.4
9 months ago
1.3.3
9 months ago
1.3.2
9 months ago
1.3.1
9 months ago
1.3.0
9 months ago
1.2.9
9 months ago
1.2.8
9 months ago
1.2.7
9 months ago
1.2.6
9 months ago
1.2.5
9 months ago
1.2.3
9 months ago
1.2.2
9 months ago
1.2.1
9 months ago
1.1.3
9 months ago
1.1.2
9 months ago
1.1.1
10 months ago
1.1.0
10 months ago
1.0.2
11 months ago
1.0.1
11 months ago