~gjabell/mfn

7fe5077fdf0768bc379a578dd76238570ffb57c9 — Galen Abell 1 year, 1 month ago 2982870 0.2.0
Update README
1 files changed, 7 insertions(+), 5 deletions(-)

M README.md
M README.md => README.md +7 -5
@@ 17,29 17,30 @@ db_path = "/var/lib/mfn/last_entry.txt" # path where the last entry is stored
[email]
subject_template = """
New Entry: {{ .Title }}{{ if ne .Author "" }} • {{ .Author }}{{ end }}
""" # golang html/template-compatible template string, which will be sent as the subject of the email
""" # golang template string, which will be sent as the subject of the email
body_template = """
{{ if ne .Content "" }}
{{ .Content }}
{{ end }}
URL: {{ .URL }}
""" # golang html/template-compatible template string, which will be sent as the body of the email
""" # golang template string, which will be sent as the body of the email
to = "My User <myuser@example.com>" # email recipient
from = "My Server <myserver@example.com>" # email sender
username = "myuser" # email server username
password = "mypass" # email server password
server = "smtp.example.com:587" # email server url with port
html = true # true to allow html content (no escaping), defaults to false

[gotify]
title_template = """
New Entry: {{ .Title }}{{ if ne .Author "" }} • {{ .Author }}{{ end }}
""" # golang html/template-compatible template string, which will be sent as the title of the message
""" # golang template string, which will be sent as the title of the message
message_template = """
{{ if ne .Content "" }}
{{ .Content }}
{{ end }}
URL: {{ .URL }}
""" # golang html/template-compatible template string, which will be sent as the body of the message
""" # golang template string, which will be sent as the body of the message
server = "https://gotify.example.com" # gotify server url
token = "mytoken" # app authentication token generated by gotify
priority = 10 # optional message priority


@@ 52,8 53,9 @@ template = """
<blockquote>{{ printf "%.250s" .Content }}{{ if gt (len .Content) 250 }}...{{ end }}</blockquote>
{{ end }}
<br/>
<a href="{{ .URL }}">{{ .URL }}</a>""" # golang html/template-compatible template string, which will be sent as the body of the webhook
<a href="{{ .URL }}">{{ .URL }}</a>""" # golang template string, which will be sent as the body of the webhook
endpoint = "https://webhooks.example.com" # the url of the webhook endpoint
html = true # true to allow html content (no escaping), defaults to false
```

Note that only one notifier is required.