What caddyfile to use custom domain for a baserow application?

Hi,

How to configure caddyfile to use a custom domain for a baserow application

I’ve tried that, but I know it’s not the right way

domain for my self-hosted baserow instance baserow.zelig-labs.fr
domain for my baserow application f24.zelig-labs.fr

my caddyfile

https://baserow.zelig-labs.fr {
encode zstd gzip
reverse_proxy /* baserow:80
}


https://f24.zelig-labs.fr {
encode zstd gzip
reverse_proxy /* baserow:80
}

Thanks for your help .

jm

Hey @jmvandamme, would you be able to share more about how you’re self hosted? The all-in-one Docker image (baserow/baserow) already has Caddy build in, and it’s configured to handle multiple hosts for the application builder.

If I visit https://baserow.zelig-labs.fr, then I’m actually seeing the Baserow tool, as expected, and when I visit https://f24.zelig-labs.fr, I’m seeing your published application.