Files
git-pages/conf/config.example.toml
T
imi415 03999af740 backend: s3: add option to choose bucket lookup type.
Certain S3 compatible storage providers does not support path style
bucket lookup anymore, add config option to manually specify DNS style
for minio.

Signed-off-by: imi415 <imi415@imi.moe>
2026-07-08 16:46:19 +08:00

70 lines
1.5 KiB
TOML

# This is a configuration used for demonstration purposes. The `config.default.toml` file contains
# a configuration corresponding to default values only.
log-format = "text"
[server]
# Use "-" to disable the handler.
pages = "tcp/localhost:3000"
caddy = "tcp/localhost:3001"
metrics = "tcp/localhost:3002"
[[wildcard]] # non-default section
domain = "codeberg.page"
preview-domain = "preview.codeberg.page"
clone-url = "https://codeberg.org/<user>/<project>.git"
index-repo = "pages"
index-repo-branch = "main"
authorization = "forgejo"
max-preview-lifetime = "7d"
[fallback] # non-default section
proxy-to = "https://codeberg.page"
insecure = false
[storage]
type = "fs"
[storage.fs]
root = "./data"
[storage.s3] # non-default section
endpoint = "play.min.io"
bucket-lookup = "auto"
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"
max-stale = "1h"
[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"
concurrent-uploads = 1024
max-heap-size-ratio = 0.5 # * RAM_size
forbidden-domains = []
allowed-repository-url-prefixes = []
allowed-custom-headers = ["X-Clacks-Overhead"]
allow-basic-auth = false
allow-expiration = false
[audit]
node-id = 0
collect = false
include-ip = ""
notify-url = ""
[observability]
slow-response-threshold = "500ms"