chore(attic): cleanup config

This commit is contained in:
Tommy 2024-04-09 14:43:10 +02:00
parent dc10fb5eb5
commit ec6c4658f6
No known key found for this signature in database
2 changed files with 2 additions and 45 deletions

View file

@ -4,7 +4,7 @@ description: |
A Nix binary caching server
appVersion: 4dbdbee45728d8ce5788db6461aaaa89d98081f0
type: application
version: 0.2.0
version: 0.2.1
maintainers:
- name: Tommy Skaug
email: tommy@skaug.me

View file

@ -9,66 +9,23 @@ data:
config.toml: |
listen = "[::]:8080"
allowed-hosts = []
#api-endpoint = "https://your.domain.tld/"
#soft-delete-caches = false
[storage]
# Can be "local" or "s3".
type = "local"
# The directory to store all files under
path = "/var/lib/atticd/storage"
[database]
#require-proof-of-possession = true
#heartbeat = false
# Set this if you are using an S3-compatible object storage (e.g., Minio).
#endpoint = "https://xxx.r2.cloudflarestorage.com"
# If unset, the credentials are read from the `AWS_ACCESS_KEY_ID` and
# `AWS_SECRET_ACCESS_KEY` environment variables.
#[storage.credentials]
# access_key_id = ""
# secret_access_key = ""
[chunking]
# If 0, chunking is disabled entirely for newly-uploaded NARs.
# If 1, all NARs are chunked.
nar-size-threshold = 65536 # chunk files that are 64 KiB or larger
# The preferred minimum size of a chunk, in bytes
min-size = 16384 # 16 KiB
# The preferred average size of a chunk, in bytes
avg-size = 65536 # 64 KiB
# The preferred maximum size of a chunk, in bytes
max-size = 262144 # 256 KiB
# Compression
[compression]
# Compression type
#
# Can be "none", "brotli", "zstd", or "xz"
type = "zstd"
# Compression level
#level = 8
# Garbage collection
[garbage-collection]
# The frequency to run garbage collection at
#
# By default it's 12 hours. You can use natural language
# to specify the interval, like "1 day".
#
# If zero, automatic garbage collection is disabled, but
# it can still be run manually with `atticd --mode garbage-collector-once`.
interval = "12 hours"
# Default retention period
#
# Zero (default) means time-based garbage-collection is
# disabled by default. You can enable it on a per-cache basis.
#default-retention-period = "6 months"
default-retention-period = "6 months"