Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ GOOS := env("GOOS", `go env GOOS`)
_help:
@just -l

# Run cachewd with hot reload
dev:
CACHEW_URL=http://localhost:8080 proctor

# Run tests
test:
@gotestsum --hide-summary output,skipped --format-hide-empty-pkg ${CI:+--format github-actions} ./... -- -race -timeout 30s
Expand Down Expand Up @@ -67,8 +63,7 @@ build-all:
# Run natively
run: build
@echo "→ Starting cachew at http://localhost:8080"
@mkdir -p state
@CACHEW_URL=http://localhost:8080 {{ RELEASE }}/cachewd --config cachew-local.hcl
proctor

# Clean up build artifacts
clean:
Expand Down
34 changes: 0 additions & 34 deletions cachew-local.hcl

This file was deleted.

41 changes: 19 additions & 22 deletions cachew.hcl
Original file line number Diff line number Diff line change
@@ -1,35 +1,32 @@
# Cachew unified configuration with tiered caching strategy
# Uses disk (L1) + S3 (L2) cache backends
#
# Required environment variable:
# - CACHEW_S3_BUCKET: S3 bucket name (REQUIRED)

# First tier: Disk cache (fast local access)
# 500GB limit hardcoded - uses defaults for everything else
disk {
root = "./state/cache"
limit-mb = 512000 # 500GB
}
# strategy git {}
# strategy docker {}
# strategy hermit {}

# Artifactory caching proxy strategy
# artifactory "example.jfrog.io" {
# target = "https://example.jfrog.io"
# }

# Second tier: S3 cache (durable storage)
# Uses defaults for all optional fields (region=us-west-2, endpoint=s3.amazonaws.com, etc.)
s3 {
bucket = "${CACHEW_S3_BUCKET}"
}

# Git strategy configuration
git {
mirror-root = "./state/git-mirrors"
clone-depth = 1000
mirror-root = "./state/git-mirrors"
clone-depth = 1000
bundle-interval = "24h"
}

# GitHub releases caching
host "https://w3.org" {}

github-releases {
token = "${GITHUB_TOKEN}"
private-orgs = ["alecthomas"]
}

disk {
root = "./state/cache"
limit-mb = 250000
max-ttl = "8h"
}

# Go module proxy
gomod {
proxy = "https://proxy.golang.org"
}
Expand Down