feat: добавить Image Gateway с кешем Souin
- добавлена сборка Caddy с Souin, Otter и NutsDB - добавлена конфигурация dev, prod и test Docker Compose - настроено кеширование через Otter L1 и NutsDB L2 - добавлены e2e-тесты Bun для кеша, restart и purge - добавлена документация по запуску, API кеша и тестам
This commit is contained in:
30
Caddyfile
Normal file
30
Caddyfile
Normal file
@@ -0,0 +1,30 @@
|
||||
{
|
||||
admin 0.0.0.0:2019
|
||||
order cache before basic_auth
|
||||
cache {
|
||||
api {
|
||||
souin
|
||||
}
|
||||
otter {
|
||||
configuration {
|
||||
size 10000
|
||||
}
|
||||
}
|
||||
nuts {
|
||||
path /cache/nuts
|
||||
}
|
||||
storers otter nuts
|
||||
}
|
||||
}
|
||||
|
||||
{$DOMAIN:localhost}:{$CADDY_PORT:80} {
|
||||
route {
|
||||
cache
|
||||
reverse_proxy {$IMGPROXY_UPSTREAM:imgproxy:8080}
|
||||
}
|
||||
|
||||
log {
|
||||
output stdout
|
||||
format console
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user