18 lines
538 B
Django/Jinja
18 lines
538 B
Django/Jinja
[Unit]
|
|
Description=Relais Alertmanager -> ntfy (Syllabus)
|
|
# Géré par Ansible (rôle supervision) — ne pas modifier à la main.
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
ExecStart=/usr/bin/python3 /usr/local/sbin/alertmanager-ntfy.py
|
|
Restart=on-failure
|
|
# Durcissement minimal : ce service lit un secret (fichier webhook), pas de
|
|
# raison qu'il écrive où que ce soit ou touche au reste du système.
|
|
NoNewPrivileges=true
|
|
ProtectSystem=strict
|
|
PrivateTmp=true
|
|
ReadOnlyPaths=/root/.alertes-webhook
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|