YunoHost / issues

General issue tracker for the YunoHost project
72 stars 8 forks source link

Let's Encrypt button is disabled for subdomains #2290

Closed scottdky closed 10 months ago

scottdky commented 1 year ago

Describe the bug

Some apps such as Invidious require a subdomain. After creating the subdomain, the Let's Encrypt button is disabled, so the subdomain cannot be accessed without a certificate. Editing the /etc/hosts file is a workaround.

This is a post for a workaround (https://forum.yunohost.org/t/cant-install-ssl-certificate-on-a-noho-st-subdomain/18727), but I found a simpler one, described below.

Context

To reproduce

  1. Add a subdomain.
  2. Try to click on Let's Encrypt button. It is disabled.

Workaround

Edit /etc/hosts and add this line:

127.0.0.1 subdomain.maindomain replacing the sub and main domain names with your own.

Save the file, and refresh the page for the subdomain. The Let's Encrypt button is now enabled and works.

When editing the file, I noticed this line had been added (before I added the one above):

127.0.0.1 subdomain

It appears that change was insufficient.

Tagadda commented 1 year ago

You have to run the diagnosis before you can install Let's Encrypt.

scottdky commented 1 year ago

Is that for every time you want to do it? One thing I failed to mention is the subdomain is a subdomain of nohost.me, e.g. videos.mysite.nohost.me.

Tagadda commented 1 year ago

Oh I don't think subdomain of a subdomain of a nohost.me doesn't work. Can you share the result of your diagnosis please ?

alexAubin commented 1 year ago

Pretty sure this is a duplicate of https://github.com/YunoHost/issues/issues/1846 / https://github.com/YunoHost/issues/issues/2006 / https://github.com/YunoHost/issues/issues/1634

alexAubin commented 10 months ago

Closing as duplicate of https://github.com/YunoHost/issues/issues/1634