Configuring Souin/Badger for large values
TheRageKage12 opened this issue · comments
I am trying to configure Souin as a Caddy module to cache large items on disk (on the order of 1 GB). Unfortunately, I am a bit confused about the configuring it.
It seems like the maximum value size you can have is 1048576. When I set it to anything above that (even just 1048577), Caddy returns an empty response.
Here is my Caddyfile:
{
order cache before rewrite
cache {
badger {
configuration {
MetricsEnabled true
ValueDir "/var/cache/caddy"
ValueThreshold 1073741824
}
}
default_cache_control maxage=86400
log_level DEBUG
ttl 86400s
}
}
mysite.com {
cache
reverse_proxy <address> {
header_up X-Real-Ip {remote}
header_up Authorization {header.Authorization}
header_up Cache-Control {header.Cache-Control}
}
tls /caddy_data/certs/cert.crt /caddy_data/certs/cert.key {
ca_root /caddy_data/certs/ca_trusted_root.txt
}
log {
output stdout
format console
level DEBUG
}
}
Seems like this isn't the actual issue. I'll try to reproduce how to get this EOF behavior and open a different issue if I have more clear steps.