From c74ec4ad23cc71d56e5e0dd1d336fb8678d3da38 Mon Sep 17 00:00:00 2001 From: Maxim Slipenko Date: Thu, 26 Mar 2026 12:19:34 +0100 Subject: [PATCH] Add configuration file example with default values only. Reviewed-on: https://codeberg.org/git-pages/git-pages/pulls/127 Co-authored-by: Maxim Slipenko Co-committed-by: Maxim Slipenko --- conf/config.default.toml | 60 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 conf/config.default.toml diff --git a/conf/config.default.toml b/conf/config.default.toml new file mode 100644 index 0000000..b3a4c68 --- /dev/null +++ b/conf/config.default.toml @@ -0,0 +1,60 @@ +# git-pages configuration + +log-format = 'text' + +[server] +pages = 'tcp/localhost:3000' +caddy = 'tcp/localhost:3001' +metrics = 'tcp/localhost:3002' + +[storage] +type = 'fs' + +[storage.fs] +root = './data' + +[limits] +max-site-size = '128MB' +max-manifest-size = '1MB' +max-inline-file-size = '256B' +git-large-object-threshold = '1MB' +max-symlink-depth = 16 +update-timeout = '1m0s' +max-heap-size-ratio = 0.5 +forbidden-domains = [] +allowed-repository-url-prefixes = [] +allowed-custom-headers = ['X-Clacks-Overhead'] + +[audit] +node-id = 0 +collect = false +include-ip = '' + +[observability] +slow-response-threshold = '500ms' + +# [[wildcard]] +# domain = "codeberg.page" +# clone-url = "https://codeberg.org//.git" +# index-repo = "pages" +# index-repo-branch = "main" +# authorization = "forgejo" + +# [fallback] +# proxy-to = "https://codeberg.page" +# insecure = false + +# S3-compatible object storage backend +# Set [storage] type = "s3" to activate. +# [storage.s3] +# 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" +# max-stale = "1h"