From f70c3a5d932af90084f8bd87751af40f66cd3137 Mon Sep 17 00:00:00 2001 From: Otto Richter Date: Fri, 6 Dec 2024 01:09:54 +0100 Subject: [PATCH] Sync config cheat sheet with LFS values See https://codeberg.org/forgejo/forgejo/commit/fe5adbbbdc0862736de37026808d4cd72adf4dab and https://codeberg.org/forgejo/forgejo/pulls/6170 --- docs/admin/config-cheat-sheet.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/admin/config-cheat-sheet.md b/docs/admin/config-cheat-sheet.md index af596fc8..2fb31d96 100644 --- a/docs/admin/config-cheat-sheet.md +++ b/docs/admin/config-cheat-sheet.md @@ -370,6 +370,7 @@ The following configuration set `Content-Type: application/vnd.android.package-a - `LFS_HTTP_AUTH_EXPIRY`: **24h**: LFS authentication validity period in time.Duration, pushes taking longer than this may fail. - `LFS_MAX_FILE_SIZE`: **0**: Maximum allowed LFS file size in bytes (Set to 0 for no limit). - `LFS_LOCKS_PAGING_NUM`: **50**: Maximum number of LFS Locks returned per page. +- `LFS_MAX_BATCH_SIZE`: **0:** When clients make lfs batch requests, reject them if there are more pointers than this number. '0' means 'unlimited' - `REDIRECT_OTHER_PORT`: **false**: If true and `PROTOCOL` is https, allows redirecting http requests on `PORT_TO_REDIRECT` to the https port Forgejo listens on. - `REDIRECTOR_USE_PROXY_PROTOCOL`: **%(USE_PROXY_PROTOCOL)s**: expect PROXY protocol header on connections to https redirector. @@ -834,6 +835,11 @@ Default templates for project boards: Additional settings can be included in this section to specify where the data is stored, as [explained in detail in the storage documentation](../storage/). +## LFS client (`lfs_client`) + +- `BATCH_SIZE`: **20**: When mirroring an upstream lfs endpoint, limit the number of pointers in each batch request to this number. +- `BATCH_OPERATION_CONCURRENCY`: **8**: Limit the number of concurrent upload/download operations within a batch. + ## Log (`log`) When configuring logging, also consult the detailed [logging documentation](../logging-documentation/).