Files
git-pages/conf/config.example.toml
Catherine fc029ad219 [breaking-change] Remove health endpoint handler and renumber metrics.
The previous commit has eliminated any way to use `ServeHealth()`,
but kept it around to not introduce breaking changes. This one has
no such constraint.
2025-09-23 02:39:11 +00:00

46 lines
1.0 KiB
TOML

# Unless otherwise noted, every value in this file is the same
# as the intrinsic default value.
log-format = "datetime+message"
[server]
# Use "-" to disable the handler.
pages = "tcp/:3000"
caddy = "tcp/:3001"
metrics = "tcp/:3002"
[[wildcard]] # non-default section
domain = "codeberg.page"
clone-url = "https://codeberg.org/<user>/<project>.git"
index-repos = ["<user>.codeberg.page", "pages"]
fallback-proxy-to = "https://codeberg.page"
[storage]
type = "fs"
[storage.fs]
root = "./data"
[storage.s3] # non-default bucket configuration
endpoint = "play.min.io"
access-key-id = "Q3AM3UQ867SPQQA43P2F"
secret-access-key = "zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG"
region = "us-east-1"
bucket = "git-pages-demo"
[storage.s3.blob-cache]
max-size = "256MB"
[storage.s3.site-cache]
max-size = "16MB"
max-age = "60s"
[limits]
max-site-size = "128M"
max-manifest-size = "1M"
max-inline-file-size = "256B"
git-large-object-threshold = "1M"
max-symlink-depth = 16
update-timeout = "60s"
max-heap-size-ratio = 0.5 # * RAM_size