Misc cleanup for dispatcher
This commit is contained in:
parent
02d16a5787
commit
7d77b38355
|
@ -1,4 +1,5 @@
|
|||
---
|
||||
msmtp_containerized: true
|
||||
msmtp_email_address: user@domain.tld
|
||||
msmtp_smtp_server: "smtp.domain.tld"
|
||||
msmtp_smtp_from: "piframe@domain.tld"
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
{
|
||||
"dispatcher": {
|
||||
"url": "http://127.0.0.1:2812",
|
||||
"user": "{{ monit_web_user }}",
|
||||
"passwd": "{{ monit_web_pasword }}"
|
||||
}{{ "," if items is defined and (items|length>0) }}
|
||||
{% for frame in items %}
|
||||
"{{ frame.name }}": {
|
||||
"url": "http://{{ frame.wireguard_address }}:2812",
|
||||
"user": "{{ frame.monit_web_user }}",
|
||||
"passwd": "{{ frame.monit_web_pasword }}"
|
||||
}{{ "," if not loop.last }}
|
||||
{% endfor %}
|
||||
}
|
||||
{
|
||||
"dispatcher": {
|
||||
"url": "http://127.0.0.1:2812",
|
||||
"user": "{{ monit_web_user }}",
|
||||
"passwd": "{{ monit_web_pasword }}"
|
||||
}{{ "," if items is defined and (items|length>0) }}
|
||||
{% for frame in items %}
|
||||
"{{ frame.name }}": {
|
||||
"url": "http://{{ frame.wireguard_address }}:2812",
|
||||
"user": "{{ frame.monit_web_user }}",
|
||||
"passwd": "{{ frame.monit_web_pasword }}"
|
||||
}{{ "," if not loop.last }}
|
||||
{% endfor %}
|
||||
}
|
||||
|
|
|
@ -4,7 +4,11 @@ auth on
|
|||
tls on
|
||||
tls_trust_file /etc/ssl/certs/ca-certificates.crt
|
||||
|
||||
{$ if msmtp_containerized %}
|
||||
logfile /opt/misc/msmtp.log
|
||||
{% else %}
|
||||
logfile /var/log/msmtp.log
|
||||
{% endif %}
|
||||
|
||||
from {{ msmtp_smtp_from }}
|
||||
keepbcc on
|
||||
|
@ -19,4 +23,8 @@ password {{ msmtp_smtp_password }}
|
|||
# Set a default account
|
||||
account default : piframe
|
||||
|
||||
{% if msmtp_containerized %}
|
||||
aliases /opt/misc/aliases
|
||||
{% else %}
|
||||
aliases /etc/aliases
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in a new issue