Kavita behind Caddy Reverse Proxy

Just wanted to add that in the example you linked, they host Kavita on its own subdomain:

{
       email youremail@here.com
       admin off
}
kavita.yourdomain.com {
       encode gzip
       tls youremail@here.com
       reverse_proxy * localhost:5000 192.168.0.1:5000  {
           header_up X-Forwarded-Host {host}:5000
           header_up -Origin
           header_up -Referer
       }
}

Such setup works correctly with the base HTML tag:

<base href="/">

What you’re doing is subdirectory hosting, which some web apps don’t handle well.

There are potential issues with subdirectory hosting.

2 Likes