[UPD] script update_dns_cloudflare.py with better guide how to use

This commit is contained in:
Mathieu Benoit 2024-11-27 23:05:21 -05:00
parent d3d9aa189d
commit 7a19e24724

View file

@ -28,6 +28,16 @@ def get_config():
When auto_sync is enable:
Check zone and name on cloudflare and compare with public ip, update all old ip with new ip if different.
You need your profile in file ~/.cloudflare/cloudflare.cfg
Example:
[profil_name]
email=email@email.com
token=TOKEN
Configure locally a crontab and adapt it, crontab -e, specify an existing DNS
Example each 5 minutes:
*/5 * * * * USERNAME cd /home/USERNAME/ERPLibre && ./script/deployment/update_dns_cloudflare.py --profile profil_name --zone_name example.com --dns_name example.com --auto_sync
Example each minute:
* * * * * USERNAME cd /home/USERNAME/ERPLibre && ./script/deployment/update_dns_cloudflare.py --profile profil_name --zone_name example.com --dns_name example.com --auto_sync
""",
epilog="""\
""",