04b) SSL Wildcard setup
Last updated
Last updated
To ensure that SSL Wildcards work with Cosmos, we must configure the DNS settings correctly. When you know what to do, it's fairly easy.
SSL Wildcards are clever because they use the root domain's SSL certificate for all subdomains. As a result, you do not need to create separate A or CNAME records for each subdomain you wish to create. You simply create URLs with Cosmos, and it will automatically work with SSL encryption/HTTPS. I promise it's fantastic!
Head to DNS
Setup a A name record:
Select "(+) Add Record"
For Type, select "A"
For Name, type in your web domain. In my case, it's engels.zip
.
For IPv4 address, type in your Public IPv4 of the server hosting Cosmos Server
Turn off Cloudflare's Proxy Tunnel. It messes up certain things unfortunately.
Press Save
Head to DNS
Setup a CNAME record:
Select "(+) Add Record"
For Type, select "CNAME"
For Name, type in *
and nothing else.
For "Target", type in your web-domain of the server hosting Cosmos Server
In my case, it would be engels.zip
Turn off Cloudflare's Proxy Tunnel. It messes up certain things unfortunately.
Press Save
Here's the whole process in a GIF, should you prefer that: