Caddy Example (v1)
In this example IP address 192.168.0.1 is the IP of the Caddy machine.
# Proxy to Kavita running locally on port 5000
kavita.yourdomain.com {
tls [email protected]
gzip
proxy / localhost:5000 192.168.0.1:5000 {
websocket
transparent
}
}
Caddy Example (v2)
{
email [email protected]
admin off
}
kavita.yourdomain.com {
encode gzip
tls [email protected]
reverse_proxy /* localhost:5000 192.168.0.1:5000 {
header_up X-Forwarded-Host {host}:5000
header_up -Origin
header_up -Referer
}
}