How to set up a custom domain with YunoHost and enable HTTPS?

Hey guys… :innocent:

I have recently started using YunoHost and managed to install it on my VPS, and so far, everything is working smoothly. However, I’m stuck on one thing — I want to use my own custom domain for my YunoHost instance instead of the default one provided during the setup process.

I’ve already bought a domain and updated the DNS settings to point to my VPS’s IP address. But I’m unsure how to properly configure this within YunoHost, especially when it comes to enabling HTTPS and making sure the certificate is valid. I’ve heard Let’s Encrypt is built-in, but I haven’t had any luck getting it to work.

I also check this: https://forum.yunohost.org/t/sogo-on-yunohost-in-dmz-with-other-maliserverservicenow But I have not found any solution. Could anyone guide me about this? Could someone guide me through the process of properly setting up a custom domain and securing it with HTTPS? I’d also appreciate any tips or gotchas to watch out for, as I’m still getting used to managing a server and don’t want to mess things up.

Thanks in advance!

Your help will be grateful for me!

Respected community member :blush:

Everytime you add a domain, you should run the diagnosis to check if everything is OK. If the diagnosis complains about something, fix it and rerun the diagnosis.
Now that your domain is correctly configured on yunohost, go to domains > your domain > certificates and run : install let’s encrypt certificate.

as jarod said, run diagnosis. It will tell you what needs to be changed. In particular, pay attention to the DNS section for those errors. What you want to see is DNS records are correctly configured for domain mydomain.tld (category basic)

next, you go to the webmin, then domains, then your domain of choice “mydomain.tld”, then go to certificates

For me, even with sufficient setup, I still get a diagnosis error. We can just ignore that. If the let’s encrypt certificate fails to install, nothing bad happens long-term. You do have to click “ignore diagnosis checks” to continue if you have this error.

If it does fail, you should check that there is no reverse proxy answering the challenge on your behalf, you have internet access, and that your domain’s DNS settings are properly configured.

You said you had no luck getting it to work, what have you tried? What errors have you seen?