morphit/ops/ansible/roles/ipfs/templates/morphit-ipns-rebroadcast.timer.j2
Morphit Team 51b1d1ba77
Some checks failed
morphit-release / Build + publish release tarball (push) Has been cancelled
Morphit v1.10.1
2026-08-06 20:44:17 -07:00

15 lines
490 B
Django/Jinja

# {{ ansible_managed }}
# Re-announce on boot + every ~4h. DHT IPNS records expire in ~48h, so a periodic
# re-PUT from every instance keeps the stable ipns://<name> alive with no central
# publisher. RandomizedDelaySec spreads the fleet's puts so they don't stampede.
[Unit]
Description=Periodically rebroadcast Morphit's IPNS record to the DHT (keeps ipns://<name> alive)
[Timer]
OnBootSec=5min
OnUnitActiveSec=4h
Persistent=true
RandomizedDelaySec=300
[Install]
WantedBy=timers.target