aboutsummaryrefslogtreecommitdiff
path: root/sample-config.toml
blob: f81e9edb7de8d78d5da07a6911c65bab88abf940 (plain)
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
# Communique Config file

# domain to use for URL generation
# *must* match incoming Host: header or else HTTP signatures will fail verification
domain = "http://localhost:8080"                   # required

# path to database directory
dbPath = "communique.db"                           # required

# each handler has its own [[handlers]] block
[[handlers]]
# name of the actor for this handler
# *must* be only A-Za-z0-9, no special characters or spaces allowed
name = "sample"                                    # required
# path to CGI script
exec = "sample-cgi-handler.sh"                     # required
# how often to execute CGI script
interval = "5s"                                    # required
# actor bio
summary = "sample bot"                             # optional
# deduplication window, 0 by default, which is NO deduplication
dedupWindow = "30s"                                # optional
# url to the avatar                     
# this is downloaded/updated every time the server is restarted
avatarUrl = "https://loremflickr.com/320/240/dog"  # optional
# expected content type of avatar url
avatarContentType = "image/jpeg"                   # required (if using avatarUrl)

# [[handlers]]
# name = "another"
# exec = "another-cgi-handler.sh"
# interval = "10"

# [[handlers]]
# name = "yetAnother"
# exec = "yet-another-cgi-handler.sh"
# interval = "10"