forked from ssbc/go-ssb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
default-config.toml
64 lines (51 loc) · 2.21 KB
/
default-config.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# SPDX-FileCopyrightText: 2023 The Go-SSB Authors
# SPDX-License-Identifier: MIT
[go-sbot]
# Where to put the log and indexes
repo = '.ssb-go'
# Where to write debug output: NOTE, this is relative to "repo" atm
debugdir = ''
# Secret-handshake app-key (or compatible alt-key)
shscap = "1KHLiKZvAvjbY1ziZEHMXawbCEIM6qwjCDm3VYRan/s="
# If set, sign with hmac hash of msg instead of plain message object using this key
hmac = ""
# How many hops to fetch (1: friends, 2: friends of friends); note that a nodejs hops value needs to be decreased by one in go-sbot
# e.g. go-sbot hops of 1 <=> ssb-js hops of 2
hops = 1
# how many feeds can be replicated with one peer connection using legacy gossip (shouldn't be higher than numRepl)
numPeer = 5
# how many feeds can be replicated concurrently using legacy gossip
numRepl = 10
# Address to listen on
lis = ":8008"
# Address to listen on for ssb websocket connections
wslis = ":8989"
# TLS certificate file for ssb websocket connections
#wstlscert = "/etc/letsencrypt/live/example.com/fullchain.pem"
# TLS key file for ssb websocket connections
#wstlskey = "/etc/letsencrypt/live/example.com/privkey.pem"
# Address to listen on for metrics and pprof HTTP server
debuglis = "localhost:6078"
# Enable sending local UDP broadcasts
localadv = false
# Enable connecting to incoming UDP broadcasts
localdiscov = false
# Enable syncing by using epidemic-broadcast-trees (EBT)
enable-ebt = false
# Bypass graph auth and fetch remote's feed, useful for pubs that are restoring their data from peers. Caveats abound, however.
promisc = false
# Disable the UNIX socket RPC interface
nounixsock = false
[sbotcli]
# SHS Key (default: 1KHLiKZvAvjbY1ziZEHMXawbCEIM6qwjCDm3VYRan/s=)
shscap = "1KHLiKZvAvjbY1ziZEHMXawbCEIM6qwjCDm3VYRan/s="
# TCP address of the sbot to connect to (or listen on) (default: localhost:8008)
addr = "localhost:8008"
# The remote pubkey you are connecting to (by default the local key)
remotekey = ""
# Secret key file (default: ~/.ssb-go/secret)
key = "~/.ssb-go/secret"
# If set, Unix socket is used instead of TCP (default: ~/.ssb-go/socket)
unixsock = "~/.ssb-go/socket"
# Pass a duration (like 3s or 5m) after which it times out (empty string to disable) (default: 45s)
timeout = "45s"