1
0
Fork 0
mirror of https://github.com/binwiederhier/ntfy.git synced 2025-05-30 18:29:16 +02:00

Fixed Rundeck example

This commit is contained in:
Philipp Heckel 2022-10-05 14:55:58 -04:00
parent e1eca2323e
commit bb2f9cbe2b
2 changed files with 5 additions and 9 deletions

View file

@ -506,17 +506,16 @@ apprise -vv -t "Test Message Title" -b "Test Message Body" \
## Rundeck
Rundeck by default sends only HTML email which is not processed by ntfy SMTP server.
Append following configurations to [rundeck-config.properties](https://docs.rundeck.com/docs/administration/configuration/config-file-reference.html) :
Rundeck by default sends only HTML email which is not processed by ntfy SMTP server. Append following configurations to
[rundeck-config.properties](https://docs.rundeck.com/docs/administration/configuration/config-file-reference.html) :
```
# Template
rundeck.mail.template.file=/path/to/template.html
rundeck.mail.template.log.formatted=false
```
Example `template.html`:
Example `template.html`:
```html
<div>Execution ${execution.id} was <b>${execution.status}</b></div>
<ul>
@ -525,13 +524,9 @@ Example `template.html`:
<li><a href="${execution.projectHref}">Project: ${execution.project}</a></li>
<li><a href="${rundeck.href}">Rundeck</a></li>
</ul>
<p>
</p>
```
Add notification on Rundeck:
Add notification on Rundeck (attachment type must be: `Attached as file to email`):
![Rundeck](static/img/rundeck.png)
Attachment type must be: `Attached as file to email`