aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsample-cgi-handler.sh2
-rw-r--r--sample-config.toml39
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"