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.99k stars 108 forks source link

[TROUBLESHOOTING]: Trying to setup cosmos on a IPv6 only VPS #165

Open tarbib opened 6 months ago

tarbib commented 6 months ago

What happened?

I am trying to setup cosmos on a ipv6 only VPS. I choose all defaults like generate self signed certificate. I can go all the way to the "Apply and restart" button but I get : "Bad Request: Invalid hostname. Use your domain instead of your IP to access your server. Check logs if more details are needed."

What should have happened?

I should have seen the cosmos UI.

How to reproduce the bug?

  1. Go to https://[ipv6]
  2. See error : "Bad Request: Invalid hostname. Use your domain instead of your IP to access your server. Check logs if more details are needed."

Relevant log output

2023/12/27 21:29:47 [ERROR] Port bc8 is added to a URL but it is not available. Skipping for now : 
2023/12/27 21:30:51 [ERROR] Invalid Hostname [2001:bc8:XXX:XXXX:XXXX:XX:XXXX:3009] for request. Expecting one of [2001:bc8:XXX:XXXX:XXXX:XX:XXXX:3009] :

Other details

I configured IPv6 as follow: https://docs.docker.com/config/daemon/ipv6/#use-ipv6-for-the-default-bridge-network

System details