forked from
whitequark.org/git-pages
fork of whitequark.org/git-pages with mods for tangled
1# Unless otherwise noted, every value in this file is the same
2# as the intrinsic default value.
3
4log-format = "text"
5log-level = "info"
6
7[server]
8# Use "-" to disable the handler.
9pages = "tcp/:3000"
10caddy = "tcp/:3001"
11metrics = "tcp/:3002"
12
13[[wildcard]] # non-default section
14domain = "codeberg.page"
15clone-url = "https://codeberg.org/<user>/<project>.git"
16index-repos = ["<user>.codeberg.page", "pages"]
17index-repo-branch = "main"
18authorization = "forgejo"
19
20[fallback] # non-default section
21proxy-to = "https://codeberg.page"
22insecure = false
23
24[storage]
25type = "fs"
26
27[storage.fs]
28root = "./data"
29
30[storage.s3] # non-default section
31endpoint = "play.min.io"
32access-key-id = "Q3AM3UQ867SPQQA43P2F"
33secret-access-key = "zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG"
34region = "us-east-1"
35bucket = "git-pages-demo"
36
37[storage.s3.blob-cache]
38max-size = "256MB"
39
40[storage.s3.site-cache]
41max-size = "16MB"
42max-age = "60s"
43max-stale = "1h"
44
45[limits]
46max-site-size = "128M"
47max-manifest-size = "1M"
48max-inline-file-size = "256B"
49git-large-object-threshold = "1M"
50max-symlink-depth = 16
51update-timeout = "60s"
52max-heap-size-ratio = 0.5 # * RAM_size
53forbidden-domains = []
54# allowed-repository-url-prefixes = <nil>
55allowed-custom-headers = ["X-Clacks-Overhead"]
56
57[observability]
58slow-response-threshold = "500ms"