zhaofengli / attic

Multi-tenant Nix Binary Cache
https://docs.attic.rs
Other
1.04k stars 79 forks source link

Feature request: declarative cache configuration. #169

Open henningphan opened 2 months ago

henningphan commented 2 months ago

Hello, Would be nice if the attic server config would have options for caches and their settings so its not a manual process to create them. Example

declarative = (hard|soft|true|false)
[cache.my_cache]
public = true
retention = 2 days

[cache.my_other_cache]
public = false
retention = 3 days

The global declarative option dictates if caches without a corresponding config section should be deleted.