azukaar / Cosmos-Server

☁️ The Most Secure and Easy Selfhosted Home Server. Take control of your data and privacy without sacrificing security and stability (Authentication, anti-DDOS, anti-bot)
https://cosmos-cloud.io
Other
2.97k stars 105 forks source link

[HELP]: Set encryption linence and domain #219

Closed rayspeedgame closed 3 months ago

rayspeedgame commented 3 months ago

What happened?

I set the encryption options after the First Setup, but it dosen't work. Here are the error show on the home page.

There are errors with your Let's Encrypt configuration or one of your routes, please fix them as soon as possible:

I have set my cosmos server domain(hostname) xx.xx.org in the cosmos configuration and my router set letsencrypt in https certification option enable the Wildcard Certificate and inputed xx.xx.org,*.xx.xx.org and the Authoritative DNS server of my domain is cloudflare. So I set Cloudflare in DNS provider option then I input my cloudflare account email and global API key in the DNS challenge setup chart the ip address of my cosmos server is 192.168.2.192 in my LAN

What should have happened?

just work with https

How to reproduce the bug?

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Relevant log output

No response

Other details

I have set the Dynamic DNS on my router, and make xx.xx.org and other sub domain to my wan port on my router and my 80 and 443 port is baned by ISP, so there are nothing if access my domain without Specify access port, I don't know if it will effect the cert. and I want to access my other APPs by some sub domain using the reverse proxy and the proxy option of cloudflare is off my English is not really well, so sincerely thanks for reading it.

System details

I want to try cosmos ,so I run it on my VMware VM system is Archlinux. type of network is bridge, so the VM have independent IP in my LAN

rayspeedgame commented 3 months ago

I deleted the data of cosmos-server, and redo the First Setup, and after some error like [ERROR] LETSENCRYPT_OBTAIN : error: one or more domains had a problem:

it just worked. maybe just because I set ip address as the hostname of cosmos-server. and although I change the hostname to my domain, it still use the ip address to request the SSL Cert. maybe that's a issue. But I solve it by re-setup.