Skip to content
Permalink
Browse files

Add example config.json file to README.md

  • Loading branch information...
JesseEstum committed Aug 30, 2019
1 parent 4ca1edd commit 18165c83fab46c67c9a6913e80b3646fb97a06b2
Showing with 19 additions and 0 deletions.
  1. +19 −0 README.md
@@ -290,6 +290,25 @@ separate configuration file. We use `config/toxiproxy.json`. This file can be
passed to the server using the `-config` option, or loaded by the application
to use with the `populate` function.

An example `config/toxiproxy.json`:

```json
[
{
"name": "web_dev_frontend_1",
"listen": "[::]:18080",
"upstream": "webapp.domain:8080",
"enabled": true
},
{
"name": "web_dev_mysql_1",
"listen": "[::]:13306",
"upstream": "database.domain:3306",
"enabled": true
}
]
```

Use ports outside the ephemeral port range to avoid random port conflicts.
It's `32,768` to `61,000` on Linux by default, see
`/proc/sys/net/ipv4/ip_local_port_range`.

0 comments on commit 18165c8

Please sign in to comment.
You can’t perform that action at this time.