mirror of
https://codeberg.org/git-pages/git-pages.git
synced 2026-05-18 13:11:35 +00:00
Add configuration file example with default values only.
Reviewed-on: https://codeberg.org/git-pages/git-pages/pulls/127 Co-authored-by: Maxim Slipenko <maxim@slipenko.com> Co-committed-by: Maxim Slipenko <maxim@slipenko.com>
This commit is contained in:
committed by
Catherine
parent
b37ca8cd14
commit
c74ec4ad23
60
conf/config.default.toml
Normal file
60
conf/config.default.toml
Normal file
@@ -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/<user>/<project>.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"
|
||||
Reference in New Issue
Block a user