mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-12-05 07:25:08 +00:00
docs: give each dl and serve flag and the error envelope one owner page and tighten the cli-reference test
This commit is contained in:
@@ -55,21 +55,8 @@ pywidevine / pyplayready clients) in addition to the REST API.
|
||||
|
||||
### Common options
|
||||
|
||||
The `serve` command accepts the following flags:
|
||||
|
||||
| Option | Default | Effect |
|
||||
|---|---|---|
|
||||
| `-h`, `--host` | `127.0.0.1` | Address to bind to. Use `0.0.0.0` to accept connections from other machines. |
|
||||
| `-p`, `--port` | `8786` | Port to bind to. |
|
||||
| `--api-only` | off | Serve only the REST API, without the Widevine/PlayReady CDM HTTP endpoints. |
|
||||
| `--cdm-only` | off | Serve only the Widevine/PlayReady CDM HTTP endpoints, plus `/api/health` and the dashboard. No REST API, no remote sessions, no Swagger UI. Cannot be combined with `--api-only` or `--remote-only`. |
|
||||
| `--no-widevine` | off | Disable the Widevine CDM endpoints. Cannot be combined with `--api-only`. |
|
||||
| `--no-playready` | off | Disable the PlayReady CDM endpoints. Cannot be combined with `--api-only`. |
|
||||
| `--no-key` | off | Disable API-key authentication entirely; every request is allowed. |
|
||||
| `--remote-only` | off | Expose only the [remote session routes](remote-sessions.md#routes). Implies `--api-only`. |
|
||||
| `--debug-api` | off | Include tracebacks and worker stderr in error responses. |
|
||||
| `--debug` | off | Enable debug-level logging. |
|
||||
| `--caddy` | off | Also launch [Caddy](https://caddyserver.com/) as a reverse proxy, using the `Caddyfile` in your user-config directory. |
|
||||
The [`serve` options](../../guide/cli-reference.md#serve) in the CLI reference give each flag, its
|
||||
default and the flags that you cannot use together.
|
||||
|
||||
```shell title="Serve the REST API only, on all interfaces"
|
||||
unshackle serve --api-only --host 0.0.0.0 --port 8786
|
||||
|
||||
Reference in New Issue
Block a user