all repos — flynet @ 707d08d9bb58ff803e4789471a16a6ddca5b0ab7

ersatz CDN on fly.io

switch to simplefs cache storage

Alin
commit

707d08d9bb58ff803e4789471a16a6ddca5b0ab7

parent

d347d894ff8176079153b8406287b049f2d8d247

3 files changed, 12 insertions(+), 7 deletions(-)

changed files
M CaddyfileCaddyfile
@@ -7,8 +7,13 @@ }
cache { ttl 1h - otter - storers otter + simplefs { + configuration { + path /data + directory_size 900MB + } + } + storers simplefs } log { format json
M DockerfileDockerfile
@@ -4,7 +4,7 @@ FROM caddy:${CADDY_VERSION}-builder-alpine AS builder
RUN xcaddy build \ --with github.com/caddyserver/cache-handler \ - --with github.com/darkweak/storages/otter/caddy \ + --with github.com/darkweak/storages/simplefs/caddy \ --with github.com/pberkel/caddy-storage-redis \ --with github.com/caddy-dns/rfc2136 \ --with github.com/jarv/caddy-goatcounter \
M fly.tomlfly.toml
@@ -47,7 +47,7 @@ path = "/"
protocol = "https" tls_server_name = "flynet-butterfly-1123.fly.dev" -# [mounts] -# source = "data" -# destination = "/data" -# initial_size = "1gb" +[mounts] + source = "data" + destination = "/data" + initial_size = "1gb"