chore(attic): cleanup config
This commit is contained in:
parent
dc10fb5eb5
commit
ec6c4658f6
2 changed files with 2 additions and 45 deletions
|
@ -4,7 +4,7 @@ description: |
|
||||||
A Nix binary caching server
|
A Nix binary caching server
|
||||||
appVersion: 4dbdbee45728d8ce5788db6461aaaa89d98081f0
|
appVersion: 4dbdbee45728d8ce5788db6461aaaa89d98081f0
|
||||||
type: application
|
type: application
|
||||||
version: 0.2.0
|
version: 0.2.1
|
||||||
maintainers:
|
maintainers:
|
||||||
- name: Tommy Skaug
|
- name: Tommy Skaug
|
||||||
email: tommy@skaug.me
|
email: tommy@skaug.me
|
||||||
|
|
|
@ -9,66 +9,23 @@ data:
|
||||||
config.toml: |
|
config.toml: |
|
||||||
listen = "[::]:8080"
|
listen = "[::]:8080"
|
||||||
allowed-hosts = []
|
allowed-hosts = []
|
||||||
#api-endpoint = "https://your.domain.tld/"
|
|
||||||
#soft-delete-caches = false
|
|
||||||
|
|
||||||
[storage]
|
[storage]
|
||||||
# Can be "local" or "s3".
|
|
||||||
type = "local"
|
type = "local"
|
||||||
|
|
||||||
# The directory to store all files under
|
|
||||||
path = "/var/lib/atticd/storage"
|
path = "/var/lib/atticd/storage"
|
||||||
|
|
||||||
[database]
|
[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]
|
[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
|
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
|
min-size = 16384 # 16 KiB
|
||||||
|
|
||||||
# The preferred average size of a chunk, in bytes
|
|
||||||
avg-size = 65536 # 64 KiB
|
avg-size = 65536 # 64 KiB
|
||||||
|
|
||||||
# The preferred maximum size of a chunk, in bytes
|
|
||||||
max-size = 262144 # 256 KiB
|
max-size = 262144 # 256 KiB
|
||||||
|
|
||||||
# Compression
|
|
||||||
[compression]
|
[compression]
|
||||||
# Compression type
|
|
||||||
#
|
|
||||||
# Can be "none", "brotli", "zstd", or "xz"
|
|
||||||
type = "zstd"
|
type = "zstd"
|
||||||
|
|
||||||
# Compression level
|
|
||||||
#level = 8
|
|
||||||
|
|
||||||
# Garbage collection
|
|
||||||
[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"
|
interval = "12 hours"
|
||||||
|
|
||||||
# Default retention period
|
default-retention-period = "6 months"
|
||||||
#
|
|
||||||
# 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"
|
|
||||||
|
|
Loading…
Reference in a new issue