Skip to content
This repository has been archived by the owner on May 4, 2021. It is now read-only.

Commit

Permalink
fix: docs: !minor Add country to configuration examples
Browse files Browse the repository at this point in the history
  • Loading branch information
juga0 committed Mar 5, 2019
1 parent 5637c18 commit ca72016
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 7 deletions.
10 changes: 9 additions & 1 deletion docs/source/examples/sbws.example.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
[scanner]
# A human-readable string with chars in a-zA-Z0-9 to identify your scanner
nickname = sbws_default
# ISO 3166-1 alpha-2 country code where the Web server destination is located.
# Default AA, to detect it was not edited.
country = SN

[destinations]
# With several destinations, the scanner can continue even if some of them
Expand All @@ -15,7 +18,12 @@ foo = on
[destinations.foo]
# the domain and path to the 1GB file.
url = https://example.com/does/not/exist.bin

# Whether to verify or not the TLS certificate. Default True
verify = False
# ISO 3166-1 alpha-2 country code where the Web server destination is located.
# Default AA, to detect it was not edited.
# Use ZZ if the location is unknown (for instance, a CDN).
country = ZZ

## The following logging options are set by default.
## There is no need to change them unless other options are prefered.
Expand Down
18 changes: 12 additions & 6 deletions docs/source/man_sbws.ini.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,12 @@ DESCRIPTION

Tor bandwidth scanner configuration file.

**sbws** (1) ``scanner`` command requires a configuration file with a
"[destinations]" section.
"[destinations]" is the only section that does not have a default value.
**sbws** (1) ``scanner`` command requires a configuration file with the
"[scanner]", "[destinations]" "[destination.<name>]" sections.

It is also required to configure "country" in the "[scanner]" section.
It is recommended, but not required to configure "nickname" in the "[scanner]"
section.
There must be at least one "[destination.<name>]".

See an **EXAMPLES** below for a minimal configuration.

SECTIONS
---------
Expand Down Expand Up @@ -186,6 +184,10 @@ EXAMPLES

Example ``destinations`` section::

[scanner]
nickname = Manual
country = US

[destinations]
foo = on
bar = on
Expand All @@ -194,14 +196,18 @@ Example ``destinations`` section::
[destinations.foo]
# using HTTP
url = http://example.org/sbws.bin
country = ZZ
verify = False

[destinations.bar]
# using HTTPS
url = https://example.com/data
country = SN

[destinations.baz]
# this will be ignored
url = https://example.net/ask/stan/where/the/file/is.exe
country = TH

FILES
-----
Expand Down

0 comments on commit ca72016

Please sign in to comment.