From 622acee185f554494e3f0e42009ca6e7c5d79838 Mon Sep 17 00:00:00 2001 From: Sergio Arroutbi Date: Fri, 14 Jul 2023 12:10:26 +0200 Subject: [PATCH] Include -c option in documentation Resolves: #10 Signed-off-by: Sergio Arroutbi --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3545d38..eccf73c 100644 --- a/README.md +++ b/README.md @@ -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