tuna http
Start an HTTP tunnel.
Guide with examples: HTTP.
Usage
tuna http [port] [flags]
Examples
tuna http 8080
tuna http 10.0.0.1:8080
tuna http https://localhost:443
tuna http unix:///var/run/docker.sock
tuna http 8080 --subdomain=billing
tuna http 8080 --domain=my-api-project.example.com
tuna http 8080 --response-header="env:test"
tuna http 8080 --basic-auth="login:password"
tuna http 8080 --key-auth="my-secret-key"
tuna http --file-server ./
tuna http --webdav ./
| Flag | Description |
|---|---|
--api-key string | Your tuna.am api key with the tunnels:connect scope (env TUNA_API_KEY). |
--basic-auth string | Add basic authentication (e.g. user:pass). Can be repeated. |
--capture-key string | Capture Key for reports. |
--cidr-allow string | Reject connections that do not match the given CIDRs. Can be repeated. |
--cidr-deny string | Reject connections that match the given CIDRs. Can be repeated. |
--cors | Enable CORS and handle OPTIONS requests. |
-d, --domain string | Host tunnel on a custom domain. |
-f, --file-server string | Path to directory that you want to serve. |
-F, --file-server-spa string | Path to directory with Single Page Application that you want to serve. |
--https-redirect | Redirect http requests to https. |
--inspect | Enable or disable the request inspector. Default: true. |
--inspect-port int | Inspector port, the tunnel fails if it is busy (also TUNA_INSPECT_PORT). |
--key-auth string | Add key authentication passed in X-Token header. Can be repeated. |
--policy-file string | Path to policy file. Default: .tuna.yml. |
--policy-url string | Policy file URL, YAML or JSON (https only). |
--qr | Generate and show QR code. |
--rate-limit int | Limit the amount of requests to your backend (e.g. 20 for 20 requests/sec). |
--request-header string | Request header (key:value) to override (e.g. host:myapp.com). Can be repeated. |
--response-header string | Response header (key:value) to override (e.g. role:admin). Can be repeated. |
-s, --subdomain string | Temporary subdomain (default: random temporary subdomain). |
--tls-skip-verify | Ignore TLS verification. Default: true. |
--ua-allow string | Reject requests that do not match to given User-Agent filters. Can be repeated. |
--ua-deny string | Reject requests that match to given User-Agent filters. Can be repeated. |
--verify-webhook string | Validate webhooks are signed by this provider (e.g. gitlab). |
--verify-webhook-secret string | Secret used by provider to sign webhooks, if any. |
--webdav string | Path to directory that you want to serve. |
Global flags work too.