# Custom Domain using CloudFlare
#obsidian
> original post by _stephanlevin_ [^1], clean, crispy instruction
_yonkim.life_ is my own custom domain for this Obsidian Publish site, purchased & registered through [Cloudflare](https://www.cloudfare.com). To set up a custom domain, I referenced [official Documentation](https://help.obsidian.md/Obsidian+Publish/Set+up+a+custom+domain). As of now, CloudFlare is the **only officially supported provider** for setting up custom domains for Obsidian Publish sites.
![[Obsidian_CF.webp]]
- yonkim.life from [Whois lookup](https://www.whois.com/whois/)
---
By default Obsidian Publish will use its own domain and the `ID` you choose in the beginning: `http://publish.obsidian.md/ID`. But you also have the possibility to use your own custom domain.
**Set up using CloudFlare[^2]:**
1. Open Cloudflare to the domain where you want to host your Publish site, such as `mysite.com`, even if you want a subdomain like `notes.mysite.com`.
2. Go to **DNS** and click **Add Record**.
3. Select **CNAME**.
4. In **name**, enter your domain or subdomain, for example `notes.mysite.com`.
5. In **target**, enter `publish-main.obsidian.md`. Don't include your personal sub-URL in this value. Obsidian Publish handles this from your configuration.
6. Make sure that **proxy status** is enabled. It should be enabled by default.
7. Go to **SSL/TLS** and set the SSL/TLS encryption mode to "Full" to configure the SSL/TLS certificate automatically.
**Obsidian:**
1. Open Obsidian on your computer.
2. In the Ribbon at the left, click Publish changes
3. Under Publish changes, select Change site options
4. Next to Custom domain, select Configure.
5. In Custom URL, enter the URL to your domain or subdomain.
---
>[!info]
>Once you set up your custom domain, if you've visited your site from your previous `https://publish.obsidian.md/slug` link, you may have to clear your browser cache for certain things (like fonts, graphs, or password access) to work properly. This is due to the cross-domain security restrictions that are imposed by modern browsers
[^1]: https://stephanlevin.garden/Obsidian+Publish/Set+Up+a+Custom+Domain+using+CloudFlare
[^2]: https://help.obsidian.md/Obsidian+Publish/Set+up+a+custom+domain#Set+up+using+CloudFlare
- [[Index-Obsidian]]