Replies: 6 comments 1 reply
-
Is this feature not wanted by anyone else? |
Beta Was this translation helpful? Give feedback.
-
I created this with the help of Google's Bard. I think it is close, but I am not a JSON programmer. I am trying to use the same API token that is pass to the script earlier and the IP that it received from DynDNS. Can anyone help me rewrite this? I am thinking to insert it on line 164. Thank you.
|
Beta Was this translation helpful? Give feedback.
-
I updated the JSON. I am editing in the worker Quick Editor. By the way, the API token permission were updated to add "Account; Zero Trust; Edit". I managed to clear all the errors. with this bit:
The only error being thrown now is that the async function "informZeroTrust" is never called within the script. Should this be added to the cloudflare class? Continuing. I decided to try and over come the call issue by adding to the "informAPI" function as it already contained the IP and the token, and was already called by the "handleRequest" function with returning the "response". Still no joy :-(.
|
Beta Was this translation helpful? Give feedback.
-
I removed all other edits and tried to update the async "updateRecord" in the cloudflare class. I received my first error on the UDM-Pro. Am I on the right path here? Failed to update Zero Trust DNS IP!
|
Beta Was this translation helpful? Give feedback.
-
FWIW. I'm interested in this too... but only a little and I'm honestly not 100% sure I see the utility in it. Personally, I currently run cloudflared on my Synology (community package) at one location and cloudflared on a Proxmox server at another location. Both work reliably for me. Hence I don't really need to move that to my UDMs, but I guess I could and simplify things a tiny bit. It might help to explain why you need this over running Cloudflared elsewhere on your network? Anwyay, I just got unifi-ddns working after banging my head on a wall (wrong token permissions) for an hour. So I don't have time or energy at the moment to try to sort out the javascript (not JSON) you shared above to see if it's on the right track or not, but can at least offer a +1 on being interested in it. |
Beta Was this translation helpful? Give feedback.
-
This seems like a useful automation to have, however it feels like it's out of scope for this project. I think a separate project would be ideal for building this out. |
Beta Was this translation helpful? Give feedback.
-
Could it please be added to the script to update the Zero Trust Gateway DNS Location DNS IP?
Beta Was this translation helpful? Give feedback.
All reactions