Updated documentation in torch.conf

master
B.J. Dweck 2020-10-23 12:32:33 +02:00
parent 76e0c6e7a7
commit 4ac90e7e77
1 changed files with 27 additions and 2 deletions

View File

@ -1,22 +1,47 @@
#################
# The `tor` section heading is required
[tor] [tor]
# Optional: The Tor onion proxy host and port (default: 127.0.0.1:9050)
#ProxyHost 127.0.0.1
ProxyPort = 9050 ProxyPort = 9050
# Optional: The Tor controller port (default: 9051) for creating new hidden services
ControllerPort = 9051 ControllerPort = 9051
#################
# The `ssh` section heading is required
[ssh] [ssh]
# Optional: Local SSH sevice port (default: 22)
Port = 22 Port = 22
#################
# The `mqtt` section heading is required
[mqtt] [mqtt]
# Optional: The MQTT broker host and port (default: localhost:1883)
# Can be either IPv4 or Tor onion hostname
BrokerHost = mqtt.example.com BrokerHost = mqtt.example.com
#BrokerHost = example1i3uyrbfoi3fi.onion #BrokerHost = example1i3uyrbfoi3fi.onion
BrokerPort = 1883 BrokerPort = 1883
# Optional: ID that will be used as an MQTT client ID when connecting to the broker (defaults to the current host's hostname)
ClientID = my-client ClientID = my-client
# Optional: Topic to be used when publishing connection info (defaults to 'torch/[hostname]/onion_url')
Topic = example/topic Topic = example/topic
### Options for Using TLS ### Optional: TLS Options
#
# Note: when CaFile, CertFile and KeyFile are ALL defined, then TLS (MQTTS) is used to connect to the broker. Otherwise MQTT is used.
#
# Optional: Whether or not TORch Agent will verify the hostname of the broker and require it to match the name on the certificate the broker provides. This will be automatically DISABLED for connections to Tor onion hosts
#RequireCertificate = true #RequireCertificate = true
#CaFile = ca.crt #CaFile = ca.crt
#CertFile = client.crt #CertFile = client.crt
#KeyFile = client.key #KeyFile = client.key