Clone Domain Configuration (Clone, Bulk, Status)
robi last edited by girish
I have been given hundreds of domains to add to Cloudron and the DNS config & copy/paste workflow isn't pleasant.
If an already configured domain had a Clone action, this would be a much more simplified workflow of simply adding new domain names, vs dealing with DNS selection, API keys & logins every time.
Might be too early to ask for a bulk domain import function, as it's more complex.
It would also be nice to see a green/red status like in the Email configuration page.
Not sure I understand that use-case. So you say you have 100s of domains configured in your Cloudron and want some better way to configure them (like setting a token or such?)
Is this only when creating a new Cloudron which has to be provisioned with that many domains? What are all those domains to be used for?
For the bulk import, I guess one could easily write a small script using the REST api https://docs.cloudron.io/api.html#tag/Domains
I have a common DNS provider (Cloudflare) and keep adding lots of domains.
It would be nice to be able to clone an existing domain on the same provider and simply change the name where all other info stays the same. Just like App cloning but simpler.
I’m getting a little lost myself. Can you give an example?
@robi I think you should be able to write up a quick bash/python script and use the API as @nebulon pointed out. Should help automate the import process with minimal human error and minimal frustration
robi last edited by robi
Hmm, sorry for not being clearer here. Not sure how else to describe it. Let's hope a screen shot and mockup does the trick of a thousand words.
Ugh, I wish I could just paste a screen shot image in here.
Have to save a file then upload.
Ok here we go:
If there was a clone action, I could simply duplicate the Cloudflare entry, input new domain name and done.
It would look like this:
I understand now, that feature to me would be called “Clone Domain Configuration” and wouldn’t be difficult to implement. But I don’t know how many users would need it so I don’t think this will get many upvotes.
On the other hand, @nebulon made a perfect suggestion about writing a quick REST API script to “mass import” domains with the same configuration. Do you have any scripting experience?
@marcusquinn Then you gotta upvote his OG post so nebs and girish know what’s in demand!
@Lonk I just past into this edit box and the magic uploads it.
I understand now, that feature to me would be called “Clone Domain Configuration” and wouldn’t be difficult to implement.
Thanks, updated the title.
Yes, must be my FF browser, not sure what though.
I also cannot use the terminal as it's all garbled in FF.
Will open a support req on this. TY
@robi That might explain. I use FF as my daily driver but Cloudron and apps I frequent are in WebCatalog, which is Electron/Chromium/Blink.
Never had an issue with cloudron in FF, neither in the Terminal nor here. I can confirm that I can just paste screenshots