Skip to content

Commit

Permalink
docs: update README (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
nunogois authored Feb 1, 2023
1 parent 46a10d2 commit 1677111
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
18 changes: 12 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
# Unleash Edge

Unleash Edge is the successor to the Unleash Proxy.
Unleash Edge is the successor to the [Unleash Proxy](https://docs.getunleash.io/how-to/how-to-run-the-unleash-proxy).

## Running Unleash Edge

Unleash edge is compiled to a single binary. We use Clap to parse arguments/environment variables to configure Unleash Edge. All modes [See Concepts/Modes](#modes) share http configuration variables.
Unleash Edge is compiled to a single binary. You can configure it by passing in arguments or setting environment variables.

```shell
$ ./unleash-edge --help
Commands:
offline Run in offline mode
edge Run in edge mode
Options:
-p, --port <PORT>
Which port should this server listen for HTTP traffic on [env: PORT=] [default: 3063]
Expand All @@ -27,7 +30,7 @@ Options:

### Modes

We support running in various modes, from a [local version](#offline) to a full blown [edge mode](#edge) supporting dynamic keys, metrics.
Edge supports various modes, from a local [offline](#offline) mode to a full blown [edge](#edge) mode supporting dynamic keys, metrics and other advanced features.

#### Offline

Expand All @@ -37,7 +40,7 @@ If your keys follow the Unleash API key format `[project]:[environment].<somesec

If you'd rather use a simple key like `secret-123`, any query against `/api/client/features` will receive the dump passed in on the command line.

Any query against `/api/frontend` or `/api/proxy` with a valid key will receive only enabled toggles.
Any query against `/api/frontend` or `/api/proxy` with a valid key will receive only enabled toggles.
To launch in this mode, run

```bash
Expand All @@ -49,12 +52,15 @@ Options:
-c, --client-keys <CLIENT_KEYS> [env: CLIENT_KEYS=]

```

#### Proxy
TODO: Document proxy mode

TODO: Document proxy mode

#### Edge

TODO: Document edge mode

## Development
See our [Contributors guide](./CONTRIBUTING.md) as well as our [development-guide](./development-guide.md)

See our [Contributors guide](./CONTRIBUTING.md) as well as our [development-guide](./development-guide.md)
2 changes: 2 additions & 0 deletions server/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ use clap::{ArgGroup, Args, Parser, Subcommand};

#[derive(Subcommand, Debug, Clone)]
pub enum EdgeMode {
/// Run in offline mode
Offline(OfflineArgs),
/// Run in edge mode
Edge(EdgeArgs),
}

Expand Down

0 comments on commit 1677111

Please sign in to comment.