summaryrefslogtreecommitdiff
path: root/resources/config.edn
blob: 04b9b605cbaee94ea5f3feefed3d554dc7dcddde (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
38
{;; :port is a string representing port number weepinbell listens to
 ;; configurable by environmental variable PORT, which is overridden by config
 :port "3000"
 ;; :base-url is used to form permalinks to a resource (a webmention, proxied photos...)
 :base-url "http://localhost:3000"
 ;; :endpoint is where webmention requests are sent to
 :endpoint "/endpoint"
 ;; :allowed-target-domains is a vector representing an allow list
 ;; weepinbell only receive webmentions whose target is from one of the domain below
 :allowed-target-domains ["example.com"]
 ;; available storage types: 
 ;; - :edn (:data-path should point to an edn text file)
 ;; - :h2 (:data-path should point to a H2 db, WITHOUT extension like ".db")
 ;; :data-path can be non-existent. weepinbell will create them.
 :storage-type :edn
 :data-path "data/webmention.edn"
 ;; :webhook is a map of events to URLs. weepinbell sends POST request to these URLs
 ;; when certain event occurs.
 ;; :webhook-request-fn is the payload generator for those requests. If nil, webhook
 ;; will carry no data and sends a plain POST request.
 :webhook {:on-receive []
           :on-create []
           :on-update []
           :on-delete []}
 :webhook-request-fn nil ;; supported values: `:ntfy` or `:bark`
 ;; :feed-length is how many latest items an RSS feed should contain.
 :feed-length 8
 ;; :pipeline-concurrency is how many processing pipelines should be started.
 ;; For personal use, 1 would be enough. For large traffic, adjust accordingly
 :pipeline-concurrency 5
 ;; Minimal log level. Set to `:debug` when debugging or submitting a bug.
 :log-level :info
 ;; :nrepl-port is port number of the embedded nREPL server
 ;; use nil to turn off nREPL feature; use an integer to enable nREPL
 ;; e.g. `:nrepl-prot 7888` means an nREPL client can connect to weepinbell's
 ;;      nREPL server and evaluate Clojure code on the fly.
 ;; WARNING: never expose nREPL server to the public network!
 :nrepl-port nil}