Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include -c option in documentation #11

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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