From 7a19e247248ddd37d8ea6a3a7ca1b85ecf8ec6d9 Mon Sep 17 00:00:00 2001 From: Mathieu Benoit Date: Wed, 27 Nov 2024 23:05:21 -0500 Subject: [PATCH] [UPD] script update_dns_cloudflare.py with better guide how to use --- script/deployment/update_dns_cloudflare.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/script/deployment/update_dns_cloudflare.py b/script/deployment/update_dns_cloudflare.py index 22dede5..be21e71 100755 --- a/script/deployment/update_dns_cloudflare.py +++ b/script/deployment/update_dns_cloudflare.py @@ -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="""\ """,