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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@
*~
.DS_Store
config.toml
test_config.toml
cache/

19 changes: 18 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.1.2] - 2026-02-10

### Added
- **Optional nginx-like disk cache**: Persistent disk-based cache for media files
- New `disk_cache_enabled` configuration option (default: false)
- New `disk_cache_path` configuration option to specify cache directory (default: ./cache)
- New `disk_cache_max_size` configuration option to limit disk space usage (default: 1GB)
- Automatic LRU eviction when disk cache size limit is reached
- TTL-based expiration using file metadata
- Atomic file writes to prevent cache corruption
- Fallback chain: memory cache → disk cache → upstream fetch
- Cache statistics in `/metrics` endpoint now include disk cache metrics

### Changed
- Bumped version from 0.1.1 to 0.1.2

## [0.1.1] - 2026-02-09

### Fixed
Expand All @@ -29,6 +45,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- Initial implementation

[Unreleased]: https://github.com/BlockG-ws/akkoproxy/compare/v0.1.1...HEAD
[Unreleased]: https://github.com/BlockG-ws/akkoproxy/compare/v0.1.2...HEAD
[0.1.2]: https://github.com/BlockG-ws/akkoproxy/compare/v0.1.1...v0.1.2
[0.1.1]: https://github.com/BlockG-ws/akkoproxy/compare/v0.1.0...v0.1.1
[0.1.0]: https://github.com/BlockG-ws/akkoproxy/releases/tag/v0.1.0
160 changes: 159 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 8 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "akkoproxy"
version = "0.1.1"
version = "0.1.2"
edition = "2021"
authors = ["Akkoproxy Contributors"]
description = "A fast caching and optimization media proxy for Akkoma/Pleroma"
Expand All @@ -25,6 +25,7 @@ libavif = { version = "0.12", optional = true }

# Configuration
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
toml = "0.8"

# Caching
Expand All @@ -41,9 +42,15 @@ http-body-util = "0.1"
url = "2.5"
clap = { version = "4.5", features = ["derive"] }
ipnetwork = "0.20"
sha2 = "0.10"
hex = "0.4"
walkdir = "2.4"

[profile.release]
opt-level = 3
lto = "thin"
codegen-units = 1
strip = true

[dev-dependencies]
tempfile = "3.8"
Loading