Closed
Description
I'm getting this warning message after having compiled the latest cache handler version, even though I'm using Redis storage (see Dockerfile below):
You're running Souin with the default storage that is not optimized and for development purpose.
We recommend to use at least one of the storages from https://github.com/darkweak/storages
Here is the Dockerfile used to build the image...
FROM caddy:builder AS builder
RUN xcaddy build --with github.com/caddy-dns/duckdns \
--with github.com/caddy-dns/cloudflare \
--with github.com/darkweak/storages/redis/caddy \
--with github.com/caddyserver/cache-handler
FROM caddy
COPY --from=builder /usr/bin/caddy /usr/bin/caddy
And below is the relevant global cache config in my Caddyfile:
{
auto_https disable_redirects
order cache before file_server
order rewrite before file_server
log {
level warn
}
cache {
default_cache_control public
log_level error
ttl 7200s
stale 600s
max_cacheable_body_bytes 2097152
allowed_http_verbs GET HEAD POST
redis {
url keydb:6379
}
}
}
[...]
handle @somehost {
cache
root * /srv/app/somehost
file_server
}
It used to work previously, are there any breaking changes? TIA.
Metadata
Metadata
Assignees
Labels
No labels