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