Skip to content

Commit

Permalink
correct command line tutorial in doc/configure_cli
Browse files Browse the repository at this point in the history
fixing some cli option names

other fix with -c and add a listener
  • Loading branch information
Keksoj committed Aug 4, 2022
1 parent e629a87 commit 8004c76
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions doc/configure_cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ You can specify its path by adding to your `config.toml`:
command_socket = "path/to/your/command_folder/sock"
```

## Add application with http frontend
## Add an application with an http frontend

First you need to create a new application with an id and a load balancing policy (roundrobin or random):

Expand All @@ -29,6 +29,12 @@ Then you need to add a backend:
sozu --config /etc/sozu/config.toml backend add --address 127.0.0.1:3000 --backend-id <my_backend_id> --id <my_application_id>
```

And an http listener:

```bash
sozu --config /etc/sozu/config.toml listener http add --address 0.0.0.0:80
```

Finally you have to create a frontend to allow sozu to send traffic from the listener to your backend:

```bash
Expand All @@ -48,7 +54,7 @@ sozu --config /etc/sozu/config.toml status
It will show global statistics about sozu, workers and applications metrics.

```bash
sozu --config /etc/sozu/config.toml metrics
sozu --config /etc/sozu/config.toml query metrics
```

## Dump and restore state
Expand Down

0 comments on commit 8004c76

Please sign in to comment.