unjs/untun
์๊ฐ
๐ Cloudflare Quick Tunnels๋ฅผ ์ฌ์ฉํด ๋ก์ปฌ HTTP(S) ์๋ฒ๋ฅผ ์ ์ธ๊ณ์ ํฐ๋๋งํ์ธ์.
์์คํ ๋ฐ ์ธํ๋ผ์ธก์ ๋ ์คํ ์ฆ๊ฐ
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- 0
- in 1 month
- -2
์๋ก ๊ฒน์น๋ ๊ธฐ๊ฐ์ ์์ฆ๊ฐ๋์ด๋ฉฐ ์ผ๋ณ ํฉ๊ณ๊ฐ ์๋๋๋ค. ์ธก์ ๊ฐ์ด ์์ผ๋ฉด ๋น์ ๋ก๋๋ค. ์คํ๋ ๊ด์ฌ๋๋ฅผ ๋ํ๋ด๋ฉฐ ํ์ง์ ๋ณด์ฅํ์ง ์์ต๋๋ค.
README.md
Original๐ untun
Tunnel your local HTTP(s) server to the world!
Powered by ๐ฅ Cloudflare Quick Tunnels and used by ๐ unjs/listhen.
Usage (CLI)
Globally run tunnel with npx:
npx untun@latest tunnel http://localhost:3000
โ Starting cloudflared tunnel to http://localhost:3000
โน Waiting for tunnel URL...
โ Tunnel ready at https://unjs-is-awesome.trycloudflare.com
Use npx untun tunnel --help for more usage info.
Usage (API)
Install package:
# npm
npm install untun
# yarn
yarn add untun
# pnpm
pnpm install untun
Import:
// ESM
import { startTunnel } from "untun";
// CommonJS
const { startTunnel } = require("untun");
Start tunnel:
const tunnel = await startTunnel({ port: 3000 });
Options
url
- Default:
{protocol}://{hostname}:{port}
The local server URL to tunnel.
port
- Default:
3000
The local server PORT (only effective if url is not provided).
hostname
- Default:
localhost
The local server hostname (only effective if url is not provided).
protocol
- Default:
http
The local server protocol (only effective if url is not provided).
verifyTLS
- Default:
false
Verify local server TLS certificate.
acceptCloudflareNotice
- Default:
false - Environment variable:
UNTUN_ACCEPT_CLOUDFLARE_NOTICE
Accept cloudflare TOS by default.
extraArgs
- Default: []
Extra CLI arguments to provide to cloudflared.
Example:
const tunnel = await startTunnel({
port: 3000,
extraArgs: ["--no-autoupdate"]
});
Development
- Clone this repository
- Install latest LTS version of Node.js
- Enable Corepack using
corepack enable - Install dependencies using
pnpm install - Run interactive tests using
pnpm dev
License
Made with ๐
Published under MIT License.
cloudflared integration based on a fork of JacobLinCool/node-cloudflared
Your installation of cloudflared software constitutes a symbol of your signature indicating that you accept the terms of the Cloudflare License, Terms and Privacy Policy.
๊ด๋ จ ํ๋ก์ ํธ ์ดํด๋ณด๊ธฐ
๋ถ๋ฌ์ค๋ ์คโฆ