Skip to content

Commit

Permalink
Include -c option in documentation
Browse files Browse the repository at this point in the history
Resolves: #10

Signed-off-by: Sergio Arroutbi <sarroutb@redhat.com>
  • Loading branch information
sarroutbi committed Jul 14, 2023
1 parent 779611d commit 01f6bd9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@ $ sudo socat -v tcp-l:80,reuseaddr,fork exec:"$(pwd)/socat-tang-filter.sh"

By default, this script will use `/etc/socat-tang-filter.csv` CSV configuration file to identify which Tang directory will be used according to the `workspace` (URL prefix) used.

An example of a possible CSV file could be this:
In case it is required to use the script with a different CSV file, it can be done through `-c` option. In next example, `/usr/local/etc/socat-tang-filter.csv` is used:

```bash
$ sudo socat -v tcp-l:80,reuseaddr,fork exec:"$(pwd)/socat-tang-filter.sh -c /usr/local/etc/socat-tang-filter.csv"
```

Regarding the CSV configuration file, an example of a possible CSV file could be this:

```bash
$ sudo cat /etc/socat-tang-filter.csv
Expand Down

0 comments on commit 01f6bd9

Please sign in to comment.