Custom domain on Obsidian Publish


For my own documentation website, I’m using Obsidian Publish. I like it because it’s just super easy to use. I go in my regular vault, modify stuff, hit a single button and done, it’s published.

There’s also the option to use a custom domain, however, Obsidian cannot manage it directly or get SSL certificates for you.

I use Caddy to reverse-proxy it:

https://docs.j4.lc {
        encode zstd gzip

        reverse_proxy https://publish.obsidian.md {
                header_up Host {upstream_hostport}
                header_up x-obsidian-custom-domain "docs.j4.lc"
        }
}
Zsh

The only thing I really had to set was x-obsidian-custom-domain so Obsidian finds my site.

Of course, you’ll need to add your custom domain on the Obsidian side as well for this to work.


Jae's Blog
Jae's Blog
@b@b.j4.lc

Jae’s blog, now federating properly!

134 posts
42 followers
Fediverse Reactions

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

To respond on your own website, enter the URL of your response which should contain a link to this post’s permalink URL. Your response will then appear (possibly after moderation) on this page. Want to update or remove your response? Update or delete your post and re-enter your post’s URL again. (Find out more about Webmentions.)