Packages
etunnel
1.2.2
1.7.52
1.7.51
1.7.50
1.7.49
1.7.48
1.7.47
1.7.46
1.7.45
1.7.44
1.7.43
1.7.42
1.7.41
1.7.40
1.7.39
1.7.38
1.7.37
1.7.36
1.7.35
1.7.34
1.7.33
1.7.32
1.7.31
1.7.30
1.7.29
1.7.28
1.7.27
1.7.26
1.7.25
1.7.24
1.7.23
1.7.22
1.7.21
1.7.20
1.7.19
1.7.18
1.7.17
1.7.16
1.7.15
1.7.14
1.7.13
1.7.12
1.7.11
1.7.10
1.7.9
1.7.8
1.7.6
1.7.5
1.7.4
1.7.3
1.7.2
1.6.16
1.6.15
1.6.14
1.6.13
1.6.12
1.6.11
1.6.8
1.6.7
1.6.6
1.6.5
1.6.4
1.6.3
1.6.0
1.5.0
1.4.0
1.3.1
1.3.0
1.2.4
1.2.3
1.2.2
1.2.1
1.2.0
1.1.0
1.0.0
Expose local services to the internet in one line of code: instant public HTTPS URLs with automatic TLS, through NAT and firewalls, no signup. Webhook-friendly ngrok-style reverse tunnel, with SDKs in 20 languages and a single-binary Go server.
Current section
Files
Jump to
Current section
Files
README.md
# etunnel for Elixir
[](https://hex.pm/packages/etunnel)
websockex + jason; local requests via :httpc.
Zero registration: every SDK client speaks the same tiny wire protocol
([PROTOCOL.md](../../PROTOCOL.md)) against any etunnel server
(default `wss://t.etun.uk/tunnel`).
## Install
```
# mix.exs
defp deps do
[{:etunnel, "~> 1.0"}]
end
```
Requires Elixir >= 1.12 / OTP 24+.
## CLI
```
mix run --no-halt runner.exs 3000
```
Prints `TUNNEL_URL: https://<subdomain>.t.etun.uk` — that URL now routes to
your local service. Ctrl-C closes the tunnel.
## Embed
```elixir
{:ok, t} = Etunnel.start_link(server: "wss://t.etun.uk/tunnel", local: 3000)
Etunnel.url(t)
```
## Environment variables
| Variable | Meaning | Default |
|---|---|---|
| `ETUNNEL_SERVER` | tunnel server WebSocket URL | `wss://t.etun.uk/tunnel` |
| `ETUNNEL_LOCAL` | local port or `host:port` (or 1st CLI arg) | `3000` |
| `ETUNNEL_TOKEN` | paid-plan API key (optional) | - |
| `ETUNNEL_SUBDOMAIN` | custom subdomain (paid plans) | random |
## License
MIT — see [LICENSE](../../LICENSE). Buffer-based protocol client: request and
response bodies are buffered per stream (fine for webhooks/dashboards/demos;
use the [Go SDK](../../sdk) for streaming and WebSocket pass-through).