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

[BUG]: Cannot Access cosmos in local network(where cosmos is set up) after cloudflare dns challenge setup. But can access cosmos ui when not in local network #221

Closed Gear-dev-sudo closed 3 months ago

Gear-dev-sudo commented 3 months ago

What happened?

I used dns challenge configuration: *.mydomain.top,mydomain.top. When accessing mydomain.top in local network, Connection Refused Show up.

What should have happened?

Should be able to go into ui

How to reproduce the bug?

  1. Connect Home wifi
  2. Visit Mydom.top
  3. See error: Connection Refused

Relevant log output

No response

Other details

No response

System details

Gear-dev-sudo commented 3 months ago

Some Logs: 2024/03/26 23:12:34 "GET https://192.168.1.107/cosmos-ui HTTP/2.0" from 192.168.1.235:51543 - 400 128B in 263.251µs 192.168.1.235 is my computer, .1.107 is my server

Gear-dev-sudo commented 3 months ago

Before I set up dns challenge, I could visit mydom.top in home network

azukaar commented 3 months ago

I dont understand, you are saying you are visiting mydom.top but in the log I can see https://192.168.1.107/ An HTTPS certificate setup for mydom.top is not going to work with any other URL