diff options
author | Julio Capote <jcapote@gmail.com> | 2023-01-08 17:25:44 +0000 |
---|---|---|
committer | Julio Capote <jcapote@gmail.com> | 2023-01-08 17:25:44 +0000 |
commit | 7fc4591459dd36a34c0c8b55f5efd0e47de39c73 (patch) | |
tree | 67e53832d8611c2dd182d7a6956c516ae88df2dc | |
parent | f064fb24429854a2b1cb6d19050ae44f2cffb306 (diff) | |
download | communique-7fc4591459dd36a34c0c8b55f5efd0e47de39c73.tar.gz |
document config
Diffstat (limited to '')
-rwxr-xr-x | sample-cgi-handler.sh | 2 | ||||
-rw-r--r-- | sample-config.toml | 39 |
2 files changed, 26 insertions, 15 deletions
diff --git a/sample-cgi-handler.sh b/sample-cgi-handler.sh index 11bae71..35e89ae 100755 --- a/sample-cgi-handler.sh +++ b/sample-cgi-handler.sh @@ -3,7 +3,7 @@ echo "Content-type: application/atom+xml" echo "" echo '<feed xmlns="http://www.w3.org/2005/Atom"> <entry> - <content>alkfjaiasdfaslasjf</content> + <content>example content</content> </entry> </feed>' exit 0 diff --git a/sample-config.toml b/sample-config.toml index efca391..360e902 100644 --- a/sample-config.toml +++ b/sample-config.toml @@ -1,20 +1,31 @@ -domain = "http://localhost:8080" -dbPath = "bub.db" +# Communique Config file -[[handlers]] -name = "sample" -exec = "sample-cgi-handler.sh" -summary = "sample bot" -interval = "1h" -dedupWindow = "5h" +# domain to use for URL generation +# *must* match incoming Host: header or else HTTP signatures will fail verification +domain = "http://localhost:8080" # required -# [[handlers]] -# name = "autosport" -# exec = "autosport-handler.sh" -# interval = "10m" -# dedupWindow = "900h" +# 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 +# avatar url +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" -# intervalSeconds = "10" +# interval = "10" |