How to configure a Custom Domain on Coolify
Date: 2024-10-21 | create | tech | coolify |
I've been using Coolify to host several of my side projects and a common task is to set up a custom url to each project.
Here we'll go over how to do this so you can set up custom domains for your own apps.
How to Setup a Custom Domain on Coolify
We really need to do 3 things:
- Configure your URL to hit the server your app is on
- Configure your Coolify app with the domain
Configure your URL to hit the server your app is on
- Go to your domain registrar
- Open the url / domain you want to change
- Go to its DNS settings and add an A record to point to your server's IP
This will basically say:
- When someone tries to hit this domain
- Forward them to the Server
This may take some time - generally DNS changes propagate in 1-4 hours but can take as much as 24.
Configure your Coolify app with the domain
Now we need to tell Coolify that when it gets a request targeting that domain, it should send it to a specific app.
- Go to your App Configuration
- Find the
Domains
section - Paste your domain / url in there
- Click
Save
andRedeploy
Once the domain is corretly pointed at the Coolify server, Coolify will provision an SSL cert so https is possible.
Next
That should get you up and running w custom domains on Coolify!
If you liked this post you might also like:
Want more like this?
The best / easiest way to support my work is by subscribing for future updates and sharing with your network.