CI / Docker image (push) Successful in 12s
CI / Server (push) Successful in 25s
CI / CLI (push) Successful in 13s
Development image / Development image (push) Successful in 21s
CI / CLI (windows) (push) Successful in 57s
CI / CLI (linux-arm64, static) (push) Successful in 1m37s
Release / Prepare release (push) Successful in 2s
Release / Server (linux-x64) (push) Successful in 53s
Release / CLI (linux-arm64, static) (push) Successful in 1m32s
Release / Docker image (push) Successful in 2m48s
Release / Server (windows-x64) (push) Successful in 6m20s
Release / CLI (windows-x64) (push) Successful in 6m48s
Release / CLI (linux-x64) (push) Successful in 7m8s
Release / Publish release (push) Successful in 1s
Squash the tree into one commit, drop docs/architecture.html, reset the version line to 0.3.0, consolidate the changelog, enable Renovate automerge for non-major updates and add AGENTS.md.
42 lines
2.1 KiB
Markdown
42 lines
2.1 KiB
Markdown
# 🚇 Introduction
|
|
|
|
frislit is a self-hosted tunnel server with a matching CLI. You run the server on a machine with a public address,
|
|
and the CLI on any machine that has something worth sharing. All traffic goes through **one public port**, so there
|
|
is nothing else to open in your firewall. frislit can hold its own certificate or sit behind a proxy you already
|
|
run, whichever you prefer.
|
|
|
|

|
|
|
|
## The three modes
|
|
|
|
HTTP tunnels are always created with `frislit http <port>`. Whether they end up on a subdomain or under a path is a
|
|
server setting, so everyone using a server gets the same kind of URL.
|
|
|
|
### 🌐 Subdomain - `httpMode: subdomain`
|
|
|
|
The classic ngrok experience. Your local HTTP server gets its own hostname like `https://k3x9ab.frislit.example.com`.
|
|
HTTP and WebSockets work, redirects that point at your local machine are rewritten to the public host.
|
|
|
|
### 🍪 Path / cookie - `httpMode: path`
|
|
|
|
For setups without a wildcard certificate, or when you want everything under one hostname. Visiting
|
|
`https://frislit.example.com/@k3x9ab` binds **that browser tab** to the tunnel, so two tabs can hold different
|
|
tunnels at the same URL. Refreshes, link clicks and form posts all stay on the tab's own
|
|
tunnel. For anything that is not a browser, name the tunnel in the query string:
|
|
`curl https://frislit.example.com/api?frislit-tunnel=<id>`.
|
|
|
|
Two things to know before choosing it: every path-mode tunnel lives on the same origin, so cookies and storage are
|
|
shared between the apps you open this way, and it only works over HTTPS or on `localhost`. Apps that need to be
|
|
isolated from each other belong on subdomains.
|
|
|
|
### 🔌 Direct TCP + UDP - `frislit tcp <port>`
|
|
|
|
No website at all. The owner gets a share code, the other side runs `frislit connect <code>` and gets the port on
|
|
their own machine - both TCP **and** UDP on the same port number, automatically. Perfect for game servers, SSH or
|
|
databases.
|
|
|
|

|
|
|
|
Read on: [Installation](/installation) · [Configuration](/configuration) · [Reverse proxy](/reverse-proxy) ·
|
|
[CLI](/cli) · [HTTPS](/https) · [Persistent tunnels](/persistent)
|