Skip to content

Commit dba81df

Browse files
committed
Add documentation for new configuration
1 parent b3ef4a8 commit dba81df

File tree

2 files changed

+53
-0
lines changed

2 files changed

+53
-0
lines changed

cmd/go-sbot/default-config.toml

+21
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,24 @@ enable-ebt = false
4141
promisc = false
4242
# Disable the UNIX socket RPC interface
4343
nounixsock = false
44+
45+
46+
47+
[sbotcli]
48+
# SHS Key (default: 1KHLiKZvAvjbY1ziZEHMXawbCEIM6qwjCDm3VYRan/s=)
49+
shscap = "1KHLiKZvAvjbY1ziZEHMXawbCEIM6qwjCDm3VYRan/s="
50+
51+
# TCP address of the sbot to connect to (or listen on) (default: localhost:8008)
52+
addr = "localhost:8008"
53+
54+
# The remote pubkey you are connecting to (by default the local key)
55+
remotekey = ""
56+
57+
# Secret key file (default: ~/.ssb-go/secret)
58+
key = "~/.ssb-go/secret"
59+
60+
# If set, Unix socket is used instead of TCP (default: ~/.ssb-go/socket)
61+
unixsock = "~/.ssb-go/socket"
62+
63+
# Pass a duration (like 3s or 5m) after which it times out (empty string to disable) (default: 45s)
64+
timeout = "45s"

docs/config.md

+32
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,27 @@ enable-ebt = false
100100
promisc = false
101101
# Disable the UNIX socket RPC interface
102102
nounixsock = false
103+
104+
105+
106+
[sbotcli]
107+
# SHS Key (default: 1KHLiKZvAvjbY1ziZEHMXawbCEIM6qwjCDm3VYRan/s=)
108+
shscap = "1KHLiKZvAvjbY1ziZEHMXawbCEIM6qwjCDm3VYRan/s="
109+
110+
# TCP address of the sbot to connect to (or listen on) (default: localhost:8008)
111+
addr = "localhost:8008"
112+
113+
# The remote pubkey you are connecting to (by default the local key)
114+
remotekey = ""
115+
116+
# Secret key file (default: ~/.ssb-go/secret)
117+
key = "~/.ssb-go/secret"
118+
119+
# If set, Unix socket is used instead of TCP (default: ~/.ssb-go/socket)
120+
unixsock = "~/.ssb-go/socket"
121+
122+
# Pass a duration (like 3s or 5m) after which it times out (empty string to disable) (default: 45s)
123+
timeout = "45s"
103124
```
104125

105126
## Environment Variables
@@ -114,6 +135,7 @@ SSB_CONFIG_FILE="~/.ssb-go-config.toml" ./go-sbot
114135
### Environment variable listing
115136

116137
```sh
138+
// === for go-ssb ===
117139
SSB_DATA_DIR="/var/lib/ssb-server"
118140
SSB_CONFIG_FILE="/etc/ssb-server/config"
119141
SSB_LOG_DIR="/var/log/ssb-server"
@@ -142,6 +164,16 @@ GO_SSB_REPAIR_FS=no
142164
// SSB_LOG_LEVEL="info" currently not implemented
143165
// SSB_CAP_INVITE_KEY="" currently not implemented
144166
// SSB_SOCKET_ENABLED=no currently not implemented
167+
168+
169+
170+
// === for sbotcli ===
171+
SSB_CAP_SHS_KEY="1KHLiKZvAvjbY1ziZEHMXawbCEIM6qwjCDm3VYRan/s="
172+
SSB_ADDR="localhost:8008"
173+
SSB_REMOTE_KEY=""
174+
SSB_KEY="~/.ssb-go/secret"
175+
SSB_UNIX_SOCK="~/.ssb-go/socket"
176+
SSB_TIMEOUT="45s"
145177
```
146178

147179
## Inspecting configured values

0 commit comments

Comments
 (0)